loops statements | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

loops statements

can you please explain to me the operation of this statement.. (i = 0; i < 100;i++)

9th Dec 2016, 4:49 AM
Emmett N. Lipholo
Emmett N. Lipholo - avatar
2 Answers
+ 2
step 1: initialise that is i=0, then step 2: check condition then go inside the loop body(no loop body in ur example off course ). step 3: now after performing the tasks of loop body , do increment then again step 2 then step 3 and so on till condition holds I'll again tell with code example if u didn't get coz it's a critical doubt , it kept me messed up in challenges in the start
9th Dec 2016, 5:03 AM
Morpheus
Morpheus - avatar
0
I'll be waiting bro... thanks a lot.. highly appreciated
9th Dec 2016, 9:22 AM
Emmett N. Lipholo
Emmett N. Lipholo - avatar