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 scope operator in c++?
Can a list of string be stored within a two dimensional array?
Can member functions be private?
What is the difference between structure and class?
Can union be self referenced?
What is constructor in C++?
What is pointer to member?
What is a set in c++?
When do we run a shell in the unix system? How will you tell which shell you are running?
What are the various storage classes in C++?
What is a float in c++?
Describe exception handling concept with an example?
What is endianness?
Explain the concept of friend function in c++?
Which ide is best for c++?