##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# C++ keywords: while

From cppreference.com
< cpp‎ | keyword

### [edit] Usage

- `while` loop: as the declaration of the loop
- `do-while` loop: as the declaration of the terminating condition of the loop

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/keyword/while&oldid=44342"