Types of Looping Statements:
There are 3 types of looping statements :
There are 3 types of looping statements :
- while loop
- do..while loop
- 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
Post a Comment