+ 1

Which loop checks the stopping condition at the beginning of the loop?

2nd Dec 2018, 12:36 PM
Kuntal Parashar
2 Respuestas
+ 2
Hi There, FOR LOOP It's basically a counter loop it checks the condition at beginning of loop cycle WHILE LOOP It's also checks condition in beginning of loop cycle DO-WHILE LOOP It checks condition at the end of each loop cycle
2nd Dec 2018, 3:37 PM
Bad_Bits
Bad_Bits - avatar
+ 1
the middle one: for ( ; i < 10; ) Edit: ignore this answer, check the 1 by anurag below
2nd Dec 2018, 1:29 PM
Rfs
Rfs - avatar