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

simplify the expression w+14w-6w & 3a²+6a+2b²
The sum of three consecutive even numbers is 156. What is the smallest of the three numbers
please help find out what is b/3+17=48
How to write 65 trillion
how to get to physics questions on this site?thanks
describe all the numbera that when rounded to the nearest thousand are 645,000
Please help. What is the value of the expression when a = 3 and b = 2?     3a^3 + 2b^3A.78   B.97C.135  D.745
What two task need to be done through disk management in order for the operating system to use the hard drive?
Which aspect of a chemical reaction is affected by an enzyme
How can archaeologists continue to study ancient remains without infringing on the rights of Native Americans?