Times Tables

In this task, you're going to take some input from the user and respond to it; a classic input - process - output IT system.

Commands

Here is a reminder of the commands you might need for this task. As the course progresses, you will get fewer of these reminders.

FOR N = 1 TO 10
PRINT "Hello"
NEXT

will print the word Hello ten times.

Your Task

Your task is to produce a program to display times tables. Your program should:

  1. ask the user which table they want to do (e.g. the 5 times table)
  2. show the times table up to 12 (e.g. if the user enters 5, then show 5, 10, 15, etc, up to 60)

The minimum output is a list of the numbers from the chosen times table.

Extension

If you found that quite straightforward, why not add some extra code to display the calculation, e.g. 1 x 12 = 12, 2 x 12 = 24, etc., or other features that improve the appearance of your program. If you can work out how to do it, for example, you could check that the number entered is a whole number, or is not negative.