Write the program for fibonacci in c++?
Answer Posted / kishor niit ottapalam
#include<iostream>
int main()
{
int x,y;
x=y=1;
while (x<200)
{
cout<<y<<endl;
x=x+y;
y=x-y;
}
return 0;
}
| Is This Answer Correct ? | 119 Yes | 82 No |
Post New Answer View All Answers
Which software is best for programming?
How do you define a class in c++?
What is set in c++?
What is a tree in c++?
Is java based off c++?
How do we implement inheritance in c++?
Difference between an inspector and a mutator
Why we use #include iostream in c++?
What is the latest c++ version?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
How do you traverse a btree in backward in-order?
Can a built-in function be recursive?
How do I run a program in notepad ++?
What is the prototype of printf function?
What is constructor and destructor in c++?