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

Help please ...a square card has an area of 15 in.^2 what is the approximate side length of the card
A go-Kart's top speed is 607,200 feet per hour. What is the speed in miles per hour?
360 customers in 30 days unit rate?
What r  All of the prime numbers
What r  All of the prime numbers
o What is an example of something (a law, organization, institution, etc.) that exists today because of the reform movement in the 1800s?
How did Henry Ford increase the production and sale of automobiles?
What does palatical chateau mean?
A car travels in 65 miles per hour.Going through construction,it travels at 3/5 this speed.Write this fraction as a decimal and find the speed
What are the tiny particles that makes up all matter around us?