Why the output changes by the use of continue in the below codes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
10th May 2019, 7:36 AM
Hari Krishna Sahu
Hari Krishna Sahu - avatar
2 Answers
+ 5
Continue jumps to start (next iteration) break ends the loop.
10th May 2019, 7:48 AM
Daniel Adam
Daniel Adam - avatar
+ 2
Continue skips the current iteration and then continue with the next iteration
15th May 2019, 8:28 AM
Nandyala Priyanka
Nandyala Priyanka - avatar