Loops. Loop with parameter (for)




Another feature of the entry is that if there is only one statement in the body of the loop, then the brackets can be omitted.

Task
Change the title of the loop so that numbers from 0 to 100 are displayed on the screen in increments of 10.

Note the indented program entry.
In order to make it easier to understand the program, the whole body of the cycle and the parentheses bounding it are shifted to the right by 2-3 characters (this entry is called the entry "ladder").

Recording "ladder" is a sign of good taste of any programmer.
C++
1
#include <iostream>      
2
using namespace std;   
3
main()  {      
4
int i;      
5
6
 cout << i <<"\n";      
7
}      
Your last submission is saved in the editor window.
     

Results:

All results: