Write the program for fibonacci in c++?
Answer Posted / bharghavi
#include<iostream.h>
void main()
{
int a=-1;b=1,c;
for(int i=0;i<200;i++)
{
c=a+b;
cout<<c<<"\t";
a=b;
b=c;
}
| Is This Answer Correct ? | 83 Yes | 65 No |
Post New Answer View All Answers
Is it possible for the objects to read and write themselves?
Is there a c++ certification?
How does c++ structure differ from c++ class?
Should the this pointer can be used in the constructor?
What do manipulators do?
Will a catch statement catch a derived exception if it is looking for the base class?
How is c++ used in the real world?
Write a program in C++ for Fibonacci series
How can you create a virtual copy constructor?
What are the advantages of using typedef in a program?
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
Why we use #include conio h in c++?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
Write a code/algo to find the frequency of each element in an array?
What is vector processing?