WAP TO DISPLAY 1, 1, 2, 3, 5,..........up to 10th term.


CLS

A = 1

B = 1

FOR I = 1 TO 10

PRINT A

C = A + B

A = B

B = C

NEXT I

END

No comments:

Post a Comment