Does 'continue' only work with the for loop or does it work with other loops or even without loops? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does 'continue' only work with the for loop or does it work with other loops or even without loops?

31st Jul 2016, 9:42 PM
cocoacheescakemuffin
cocoacheescakemuffin - avatar
1 Answer
+ 1
it works with all loops because in the case of continue it only requires to check the test condition for re-entering in the loop
3rd Aug 2016, 9:27 AM
Ambika Arora
Ambika Arora - avatar