Tabla de Contenidos

[Arduino] Referencia: Bucles

Bucle for

for (int i=0; i <= 100; i++){
   // accion
}

Bucle while

variable = 0;

while(variable < 100){
   // accion
   variable++;
}

Bucle do while

do {
   //accion
   variable++;
} while (variable < 100);