In this task, you're going to take some input from the user and respond to it; a classic input - process - output
Here is a reminder of the commands you might need for this task. As the course progresses, you will get fewer of these reminders.
PRINT - text needs to be put in speech marks, e.g. PRINT "Hello", numbers don't, e.g. PRINT 10 or PRINT A (where A is a variable). Putting a semi-colon (;) at the end of the print command - e.g. PRINT "Hello"; - will cause the next thing that you print to carry on on the same line.
INPUT - e.g. INPUT "What is your name? "; A$ will ask the question and store the answer in the variable called A$
FOR - repeats a section of your program a number of times - e.g. FOR N = 1 TO 10 will repeat 10 times, counting with N from 1 to 10. If you don't want to count in 1s, you can add STEP - e.g. FOR N = 5 TO 100 STEP 5 (to count up to 100 in 5s) or FOR N = 10 TO 1 STEP -1 (to count from 10 down to 1). You don't need to use N - it's just a programmers habit, like using x in algebra; any valid variable name will do.
NEXT - goes after FOR, at the end of the section that you want to repeat, e.g.
FOR N = 1 TO 10
will print the word Hello ten times.
Comments - these are lines in your program that don't do anything. They are like labels and are usually use to remind you (or someone else looking at your program) what it does. Any line that begins with an apostrophe is treated as a comment, e.g. ' My First Program.
Your task is to produce a program to display times tables. Your program should:
ask the user which table they want to do (e.g. the 5 times table)
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.
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.