Write the program for fibonacci in c++?
Answer Posted / psrthipan j
#include<iostream.h>
int main()
{
int x,y;
x=y=1;
while(x<20)
{
cout<<y<<end 1;
x=x+y;
y=x-y;
}
return 0;
}
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is setf in c++?
Is c++ high level programming language?
How do you flush std cout?
What are features of c++?
What is the difference between method overloading and method overriding in c++?
What are the advantages of c++?
What is the hardest coding language to learn?
what are Access specifiers in C++ class? What are the types?
How do you clear a map in c++?
How does java differ from c and c++?
What is a null object in c++?
Is c better than c++?
What is the use of turbo c++?
What is the use of main function in c++?
What are friend functions in C++?