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

Expanded form and word form for 3.4
what is the simplest form of this question 3 2/3+1/3(42+48k)
The quotient of 4 divided by a number I need to write it in words.
What is the role of a connecting Protein
What land gradually increases and elevation westward
Can someone help me??
how do you get 127+376=503
what were some of the problems associated with the first established government?
According to geographers, there are two kinds of location: A. national or international. B. absolute or relative. C. primary or secondary. D. exact or abst
What deal gave settlers a chance to not only prosper financially but to stake a claim in the land while they still could?