OPEN "1long.txt" FOR INPUT AS #1
OPEN "2long.txt" FOR INPUT AS #2
INPUT #1, a$
INPUT #2, b$
FOR i = 1 TO 100
chr(a$, i, i + 1) = a1$
IF a1$ = "0" THEN a(i) = 0
IF a1$ = "1" THEN a(i) = 1
IF a1$ = "2" THEN a(i) = 2
IF a1$ = "3" THEN a(i) = 3
IF a1$ = "4" THEN a(i) = 4
IF a1$ = "5" THEN a(i) = 5
IF a1$ = "6" THEN a(i) = 6
IF a1$ = "7" THEN a(i) = 7
IF a1$ = "8" THEN a(i) = 8
IF a1$ = "9" THEN a(i) = 9
NEXT i
FOR j = 1 TO 100
chr(b$, i, i + 1) = b1$
IF b1$ = "0" THEN a(j) = 0
IF b1$ = "1" THEN a(j) = 1
IF b1$ = "2" THEN a(j) = 2
IF b1$ = "3" THEN a(j) = 3
IF b1$ = "4" THEN a(j) = 4
IF b1$ = "5" THEN a(j) = 5
IF b1$ = "6" THEN a(j) = 6
IF b1$ = "7" THEN a(j) = 7
IF b1$ = "8" THEN a(j) = 8
IF b1$ = "9" THEN a(j) = 9
NEXT j
FOR n = 1 TO 100
s = a(n) + b(n)
IF s > 9 THEN
c(n) = s - 10
c(n + 1) = c(n + 1) + 1
ELSE
c(n) = s
END IF
FOR m = 1 TO 100
OPEN "result.txt" FOR APPEND AS #3
PRINT #3, c(m)
NEXT m