Basic Program To add two in Series and Put as next in Series

REM THIS PROG ADDS TWO IN SERIES AND PUTS AS NEXT IN SERIES
REM This Prog is not correct N2=1 and put step nos (see N3prog)
CLS
INPUT “ENTER THE VALVUE “; N
N1 = 0
N2 = 0
PRINT N1; N2
FOR I = 1 TO N
N3 = N1 + N2
PRINT N3
N1 = N2
N2 = N3
NEXT I
END

Please follow and like us:

Leave a comment