C++ while


Example

Introduces a while loop.

int i = 0;
// print 10 asterisks
while (i < 10) {
    putchar('*');
    i++;
}