input a number in QBASIC and check whether the given number is fibonacci or not
Answers
Answered by
1
Answer:
CLS
A=0
B=1
PRINT A,B
INPUT "ENTER NUMBER OF TIMES THE SERIES WILL RUN=";n
FOR I=1 TO n
S=A+B
PRINT S
B=S
A=B
NEXT I
END
Similar questions