1234567
int loopnumber Loop statment int number of times { my looped info goes here }
123
for(int i = START_VALUE; i < END_VALUE; ++i) { // looped info }
1234567891011
//An example taken from the page on the for loop #include <iostream> using namespace std; int main () { for (int n=10; n>0; n--) { cout << n << ", "; } cout << "FIRE!\n"; return 0; }
10, 9, 8, 7, 6, 5, 4, 3, 2, 1, FIRE!
int loopthismany loop(loopthismany) { //looped info }