Computer Science, asked by dildarhusain301, 5 months ago

0.8. Write a program that inputs a number from the user and displays
Fibonacci series up to the number entered
Minclude <iostream h>
#include<conio.h>
void main()
cirsero):
int a, b, next, limit;
cout<<"Enter the limit upto which fibonnacl terms requrled":
cin>>limit
a 0
cout<<"Fibonacci terms upto limit are: "<<endl;
cout<<<<<<b;
next a+bi
while(next <limit)
next = ab;
cout<<<<next;
aub,
b-next:
nextwa+b;
Freebooks.pk
getch();​

Answers

Answered by nishantsharma50609
1

Explanation:

and displays

Fibonacci series up to the number entered

Minclude <iostream h>

#include<conio.h>

void main()

cirsero):

int a, b, next, limit;

cout<<"Enter the limit upto which fibonnacl terms requrled":

cin>>limit

a 0

cout<<"Fibonacci terms upto limit are: "<<endl;

cout<<<<<<b;

next a+bi

while(next <limit)

next = ab;

cout<<<<next;

aub,

b-next:

nextwa+b;

Freebooks.pk

getch();

Similar questions