khubaib30 khubaib30
  • 12-01-2021
  • Computers and Technology
contestada

write a program to QBASIC to display the first 10 numbers of fibonacci series​

Respuesta :

tonb
tonb tonb
  • 12-01-2021

Answer:

FIB = 0

FNEXT = 1

FOR I=1 TO 10

 PRINT FIB

 TEMP = FNEXT

 FNEXT = FIB + FNEXT

 FIB = TEMP

NEXT I

Explanation:

The Fibonacci Sequence is: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89…

We're printing only the first 10 numbers.

Answer Link

Otras preguntas

What are the muscles used to push a heavy cart in front of you? which are primary and which are synergist?
Is my answer correct?? Please correct me Thank you!
help me with this question
Which size box of rice shown in the table has the lowest unit price?
what would you fill in the blank to make the equation have no solution? -2+4x+6=3x+5__?
to what extent are humans responsible for changing landscape​
Find the quotient. Use a model to explain your answer 1/6 divided by 3 = ?
why is cellular respiration called an aerobic process
HELPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
Place the following numbers in order from greatest to least 5/3 -1/3 1.8 -v3 -3/7