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

4x−6÷x x=6 Help please!
A student is running a 5 kilometer race he runs 1 kilometer every 3 minutes select the function that describes distance from the finish line after x minuets
Help me pleaseee!! Would appreciate ^^ **BRAINLIST, thanks and points*** Number 3 Plssss answer
why is the number 2? Please explain
Describe the importance of the Endomembrane System in the cell in detail..
Please help me with this question im too slow to answer
HELP ME PLEASE Jellyfish can reproduce both asexually and sexually. Which of the following statements is TRUE based on the advantages and disadvantages of asexu
Examine the following table that represents some points on a line. X Y -6-10 -4 -9 6 -4 Which equations in point-slope form represent this line? Select all that
what is a misdemeanor???
How are crystals prepared?