elibraryportal Logo

While Loop Statement in C

In while loop first check the condition, if condition is true then control goes inside the loop body, other wise goes outside the body.

Example:

Output

1
2
3
4
5
6
7
8
9
10

Next TopicDo-while Loop