Experimenting with for Loops

Try the following:
  1. Adapt program ForLoop so that it will output the alphabet in capitals.
    Tip: The letter A has ASCII code 65.
  2. Write a program that uses a for loop to output on ten successive lines “Line 1” through to “Line 10”.

  3. (Harder) Try writing a program that outputs the seven times table (1 x 7 = 7, 2 x 7 = 14 etc.).

    Adapt this program so that it will output the times table of a number given by the user.

Programming - a skill for life!

Iteration: for loops, repeat loops and while loops