Repeat statement?? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Repeat statement??

Does a statement exist to repeat an iteration?? Like we have continue to skip and break to leave the loop but is there any to repeat??

11th Mar 2021, 1:47 PM
Dylan Heslop
Dylan Heslop - avatar
1 Respuesta
+ 2
you can use "goto" or do while loop boolean repeat; do { repeat=false; //your loop //use repeat=true if you want to repeat }while(repeat);
11th Mar 2021, 2:05 PM
deleted