#Concept #Study #CPP
Pre test loop, the test is done at the beginning of the loop.
If the test fails, the loop is never executed.
```cpp
while(expression){
statement(s);
}
```
## Example
```cpp
int i {1};
while (i <= 5){
cout << i << endl;
++i; // if the expression is never false the loop will run forever.
}
```
## 🔗Resources