elibraryportal Logo

Do While Loop Statement in C++

It is just like while and for loop but the only difference is that executes the code block once before checking the condition.

Syantax:-

Example:-

Output:

1
2
3
4
5
6
7
8
9
10