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 c++ low level?
Which is the best c++ compiler?
How do you flush a buffer in c++?
write a function signature with various number of parameters.
Can I learn c++ without c?
What are the main features of c++?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
What sorting algorithm does c++ use?
what is C++ exceptional handling?
What does iomanip mean in c++?
Mention the ways in which parameterized can be invoked. Give an example of each.
What is the full form nasa?
Write about the retrieval of n number of objects during the process of delete[]p?
What is a string example?
Explain the isa and hasa class relationships. How would you implement each?