10 REM TO FIND THE SQUARE OF A NUMBER
20 PRINT “WHAT NUMBER DO YOU WANT TO SQUARE?”
30 INPUT R
40 LET S = R * R
50 PRINT R,S
60 GO TO 20
WHAT NUMBER DO YOU WANT TO SQUARE?
Line 30 The student can type in any number that they want to be squared. They don’t have to know the answer.
10 REM STUDENT INPUTS MULT FACTS AND ANSWERS
15 PRINT “ TYPE IN TWO MULT FACTS SEPARATED BY COMMAS”
20 INPUT A,B
30 LET C = A * B
40 PRINT “WHAT IS THE PRODUCT?”
50 INPUT C1
60 IF C1 = C THEN 90
70 PRINT “TRY AGAIN”
75 PRINT “YOUR NUMBERS ARE”;
76 PRINT A;B
8O GO TO 40
90 PRINT “VERY GOOD”
100 GO TO 15
TYPE IN TWO MULT FACTS SEPARATED BY COMMAS
WHAT IS THE PRODUCT?
Line 20 The student types in both the multiplication facts and 50 the answer.
Line 30 This line could easily be changed to test addition or any other skill.
Line 60 If the answer is incorrect the student gets to try again until the correct answer is given. Each time he tries the numbers are given to him again in case they are not remembered. If the answer is correct he can precede to the next problem of his choice.
Line 75 A semicolon at the end of a statement will cause the next “PRINT” statement to appear on the same line.