EasyManua.ls Logo

VTech PreComputer Prestige - Page 75

VTech PreComputer Prestige
93 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
73
5. WORMS
0 REM WORM QUELIE
10 INPUT "How many letters in your first name"; NUMBER
20 INPUT "How many letters in your last name"; L$
30 LET L = VAL(L$)
40 LET SUM = L + NUMBER
50 PRINT "Then your full name is"; SUM; "letters long."
60 END
6. ADDMINUS
0 REM CALCULATE
10 INPUT "Please input the first number"; A
11 INPUT "And the second number"; B
20 PRINT "Do you want to find their"
30 INPUT "sum(S) or difference(D)"; ANS$
40 IF ANS$ = "D" OR ANS$ = "d" THEN GOTO 80
50 IF ANS$ = "S" OR ANS$ = "s" THEN GOTO 200
60 PRINT "Please type ‘S’ or ‘D’!"
70 GOTO 20
80 PRINT "The difference of"

Related product manuals