Saturday, November 2, 2019

#15 WAP TO DISPLAY1,1,2,3,5,8.....UPTO 10thTERM

DECLARE SUB SERIES()
CLS
CALL SERIES
END

SUB SERIES()
A=1
B=1
FOR I = 1 TO 10
PRINT A;
PRINT B;
A=A+B
B=B+A
NEXT I
END SUB

No comments:

Post a Comment