0

Loop means?

5th May 2017, 11:35 AM
Junaid Hussain Shah
Junaid Hussain Shah - avatar
4 Réponses
0
A continuos circular path.If you write a logic within the loop block then logic will be continuously follow the circular path,if you want to stop this then either provide a logic or simple use the "break;" statement to break the continuous path. Example: for loop:-->> for(int i=0;i<3;i++){} Here int i=0 is the intialization part that means it is the starting point.Here i start with the value 0 then it will check it is less than 3 or not?? if yes then it will enter the loop that means you are allowing the loop to make a one cycle.After that the value of i will be 1 Why? Very simple i++ means i=i+1 then again it will check the condition part(it is less than 3 or not,if yes then it will enter if not then it will not enter the loop) P.S. Hope you understand the concept.Cheers☺☺
5th May 2017, 1:17 PM
Saikat Mukherjee
Saikat Mukherjee - avatar
0
Its a set of instructions that keep running while certain conditions are true.
5th May 2017, 12:07 PM
Nappster
0
repetitions
8th May 2017, 5:18 PM
LongTom
LongTom - avatar