More about the For Statement

This chapter discusses the 'for' loop in greater detail, as well as the scope of variables in the 'for' loop.

1. More about the for Statment

The for is a useful and frequently used statement. This chapter discusses more details about the for you should know in order to make full use of it.

Chapter Topics:

      • Declaring the loop control variable in the for statement
      • Scope of a loop control variable
      • Floating point increments

Question 1:

(Review:) What is the advantage of a for statement over a while statement?

Source: Bradley Kjell,
Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 License.