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
What is encapsulation in c++ with example?
What is the function of I/O library in C++ ?
What are the various storage classes in C++?
What language is a dll written in?
What is the oldest programming language?
What is the size of a vector?
what is C++ objects?
How do you invoke a base member function from a derived class in which you have not overridden that function?
What is object file? How can you access object file?
What is c++ & why it is used?
Is python written in c or c++?
When must you use a pointer rather than a reference?
What does std :: flush do?
What is guard code in c++?
What are the advantages of c++?