Computer Science, asked by moumidutta81, 4 days ago

Write a program in QBASIC to print the sum of the first 10 Fibonacci numbers. ​

Answers

Answered by anishamohanan02
4

Answer:

here is the program

CLS

INPUT "what should be the first number in the seris"; x

INPUT "how many numbers do you want to print"; y

y = y - 2

a = x

b = x

PRINT a; b;

FOR i = 1 TO y

c = a + b

PRINT c;

a = b

b = c

NEXT i

END

Similar questions