Wednesday, October 16, 2019

QBASIC to display 1, 2, 3, 5, 8.. 13the term using SUB

DECLARE SUB SERIES ( )
CLS
CALL SERIES
END

SUB SERIES
A = 1
B = 2
FOR I = 1 TO 13
PRINT A;
C = A+B
A = B
B = C
NEXT I
END SUB

No comments:

Post a Comment