Professional Documents
Culture Documents
Lec 09 PDF
Lec 09 PDF
Computer Programming
while loop
While
• While Loop is just like for loop and can be used for similar
purpose.
• The syntax of while loop is different from for. And while loop
is faster than for.
• Just like for, there is no ; in the line of while and there must
be second bracket to start new segment after the line of
while.
• If continue is given inside a loop, then the next loop will be executed
without completing the present loop.