> ## Content Index
> Fetch the complete content index at: https://developerinsider.co/llms.txt
> Use this file to discover other available public pages before exploring further.

# The do..... while loop in C++
- URL: https://developerinsider.co/the-do-while-loop-in-cpp/
- Published: 2016-08-16T08:20:00.000Z
- Updated: 2018-03-29T17:01:15.000Z
- Author: Anit Kumar
- Tags: Primary, C++

The do.... while loop checks its condition at the bottom of the loop.  
A do.... while loop is similar to a while loop. The one difference is that the do.... while loop is guaranteed to execute at least one time.  
**Syntax:**

```
do
{
statement(s);
}while(condition);

```

**Example:**

```
int a=0;
do
{
cout<<a<<endl;
a++
}while(a<10);

```

**Output:**

```
0
1
2
3
4
5
6
7
8
9

```