Reference.DoWhile History

Hide minor edits - Show changes to markup

June 01, 2010, at 06:00 PM by Equipo Traduccion -
Changed line 18 from:
  delay(50);                 // espera a que los sensores se estabilicen
to:
  delay(50);              // espera a que los sensores se estabilicen
Changed line 21 from:

} while (x < 100); //si se cumple la condición se repite el bucle

to:

} while (x < 100); //si se cumple la condición se repite el bucle

June 01, 2010, at 06:00 PM by Equipo Traduccion -
Changed lines 3-4 from:

The do loop works in the same manner as the while loop, with the exception that the condition is tested at the end of the loop, so the do loop will always run at least once.

to:

El bucle "'do'" trabaja de la misma manera que el bucle "'while'", con la excepcion de que la condición se comprueba al final del bucle, por lo que este bucle se ejecuta "siempre" al menos una vez.

Changed lines 8-9 from:
    // statement block

} while (test condition);

to:
    // bloque de instrucciones

} while (condición);

Changed lines 13-14 from:

Example

to:

Ejemplo:

Changed lines 18-21 from:
  delay(50);          // wait for sensors to stabilize
  x = readSensors();  // check the sensors

} while (x < 100);

to:
  delay(50);                 // espera a que los sensores se estabilicen
  x = readSensors();  // comprueba los sensores

} while (x < 100); //si se cumple la condición se repite el bucle

May 26, 2007, at 02:25 PM by Paul Badger -
Changed line 18 from:
  delay(50);         // wait for sensors to stabilize
to:
  delay(50);          // wait for sensors to stabilize
May 26, 2007, at 02:25 PM by Paul Badger -
Added line 5:

[@

Changed lines 10-12 from:

Example

to:

@]

Example

May 26, 2007, at 02:24 PM by Paul Badger -
Changed lines 3-4 from:

The do loop works in the same manner as the while loop, with the exception that the condition is tested only after the loop has run, so the do loop will always run at least once.

to:

The do loop works in the same manner as the while loop, with the exception that the condition is tested at the end of the loop, so the do loop will always run at least once.

May 26, 2007, at 02:23 PM by Paul Badger -
Added lines 1-19:

do - while

The do loop works in the same manner as the while loop, with the exception that the condition is tested only after the loop has run, so the do loop will always run at least once.

do {

    // statement block

} while (test condition);

Example

do
{
  delay(50);         // wait for sensors to stabilize
  x = readSensors();  // check the sensors

} while (x < 100);

Share