#Concept #Study #CPP
Usually not needed and not best practice, there are some use cases though like loops looking for many user inputs.
## Example 1 - infinite while loop
```cpp
while(true){
cout << "this will print forever" << endl;
}
```
## Example 2 - infinite for loop
```cpp
for(;;){
cout << "this will print forever" << endl;
}
```
## 🔗Resources