11 lines
304 B
Plaintext
11 lines
304 B
Plaintext
10 PRINT "Input two numbers separated by"'"space(s) "
|
|
20 INPUT LINE a$
|
|
30 GO SUB 90
|
|
40 FOR i=1 TO LEN a$
|
|
50 IF a$(i)=" " THEN LET a=VAL a$( TO i): LET b=VAL a$(i TO ): PRINT a;" + ";b;" = ";a+b: GO TO 70
|
|
60 NEXT i
|
|
70 STOP
|
|
80 REM LTrim operation
|
|
90 IF a$(1)=" " THEN LET a$=a$(2 TO ): GO TO 90
|
|
100 RETURN
|