There can be multiple operators in each heading part, separated by commas.< /span>
Heading examples:
for ( int i = 0; i < 10; i + + ) { ... } -
standard title
for ( int i = 0, x = 1; i < 10; i += 2, x *= 2 ){ ... }
// in this case, we use two variables that will change after the execution of the loop body - these are the variables i and x
// variable i changes in increments of 2 - i+=2
- short for i=i+2
// variable x increases by 0.1 times with each step x=x*2
- abbreviated х*=2