Module: (C++) Loops. Loop with parameter (for)


Problem

3/17

For loop title - Workshop

Theory Click to read/hide

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.

Problem

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.