Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The for statement provides a compact way to iterate over a range of values. Programmers often refer to it as the for loop because of the way in which it repeatedly loops until a particular condition is satisfied.

...

Similar to C, C++ or Java of the for statement can be expressed as follows:

...