question about loop tutorial....
Hey on the tutorial section theres this code on loops.
Code:
{ //The loop goes while x<100, and x increases by one every loop
for(int x=0;x<100;x++) //Keep in mind that the loop condition checks
{ //the conditional statement before it loops again.
//consequently, when x equals 100 the loop breaks
cout<<x<<endl; //Outputting x
}
return 0;
}
Now i need to write some code that displays a question a set amount of times, i was thinking i could use this, but for some reason i cant seem to work out where the loop content goes. Anyone help me on this?