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
Why do we use using namespace std in c++?
Which is better turbo c++ or dev c++?
How delete [] is different from delete?
What is the syntax for a for loop?
What is c++ manipulator?
What is the basic structure of c++ program?
What does std :: flush do?
How would you call C functions from C++ and vice versa?
What are literals in C++?
What is the difference between containment and delegation?
What is object file? How can you access object file?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
What is a pointer how and when is it used?
Explain the uses of static class data?
Which bit wise operator is suitable for putting on a particular bit in a number?