For loops in C and C++


for(variable initialization; conditional; variable increment)
Braces are only needed for multiline blocks of code. Any of the three segments can be left blank. The loop is executed while the conditional statement is true.


Looping tutorial

Learn about while loops

Learna about do while loops