next up previous
Next: while Up: Control Structures Previous: if

for


for (int i = 0; i < 10; i++) {
        cout i << " " << i*i;
}


Andreas Koeller
2000-06-04