Write the program for fibonacci in c++?
Answer Posted / techbots
#include<iostream>
void main()
{
int x=1,y=0;
while (x<200)
{
cout<<y<<endl;
x=x+y;
y=x-y;
}
}
Is This Answer Correct ? | 34 Yes | 53 No |
Post New Answer View All Answers
What is polymorphism and its type in c++?
Can we use clrscr in c++?
What are the types of pointer?
what are the iterator and generic algorithms.
What are special characters c++?
What is the use of string in c++?
Difference between a copy constructor and an assignment operator.
Why do we need c++?
How do I get good at c++ programming?
What does new in c++ do?
Are c and c++ different?
Where must the declaration of a friend function appear?
What is ios in c++?
Is swift faster than c++?
Can we define a constructor as virtual in c++?