Demonstrate a for-loop where the step-value is greater than one.
This prints all odd digits:
for (int i = 1; i < 10; i += 2) std::cout << i << std::endl;
Content is available under GNU Free Documentation License 1.2.
Demonstrate a for-loop where the step-value is greater than one.
This prints all odd digits:
for (int i = 1; i < 10; i += 2) std::cout << i << std::endl;
Content is available under GNU Free Documentation License 1.2.