> For the complete documentation index, see [llms.txt](https://abhyas-kanaujia.gitbook.io/lb-dsa-notes-and-homework-abhyas/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abhyas-kanaujia.gitbook.io/lb-dsa-notes-and-homework-abhyas/03-programming-basics-ii/homework/07.-explain-do-while-loop.md).

# 07. Explain do while loop

The `do while` loop is a variation of the `while` loop with the difference that the loop is executed at least once even when the condition is false.

Syntax:

```cpp
do
{
  // code
} while (condition);
```

Note: There is a semi-colon at the end of the loop unlike other looping constructs.
