Types of Looping Statements

Types of Looping Statements:

There are 3 types of looping statements :


  1. while loop
  2. do..while loop
  3. for loop
while loop
            
          Syntax:
                       while(condition)
                        {
                            body of loop
                         }


while loop is a entry controlled loop that executes the body of loop until loop condition evaluated to false. If condition is false at first stage then it continues with statement written after the body of loop skipping body of loop.

Comments