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

-2a+7-3(-9-4a) how do I solve this?
Given: △ABC, m∠A=60°, m∠C=45°, AB=9 Find: Perimeter of △ABC, Area of △ABC do not rationlize
the quotient of 1/4 ÷3/8​
Two trains leave the station at the same time, one heading east and the other west. The eastbound train travels at a rate of 65 miles per hour. The westbound tr
Calculate the middle number between 1-5 and 7.1
10/7=x/3 what is the answer need help​
Find the circumference and the area Of the circle with diameter 4yd Use vale 3.14 to help with answer Be specific with answers with right symbol Yd , Yd2 or
GREATEST COMMON FACTOR OF 6 OF 27 AND 30
2.1 g of a hydrocarbon fuel is burned in a calorimeter that contains 280 grams of water initially at 25.00◦C. After the combustion, the temperature is 26.55◦C.
what does an enzyme do?​