Repeat statement?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
+ 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