Write the program for fibonacci in c++?
Answer Posted / techbots
#include<iostream>
void main()
{
int x=1,y=0;
while (x<200)
{
cout<<y<<endl;
x=x+y;
y=x-y;
}
}
| Is This Answer Correct ? | 34 Yes | 53 No |
Post New Answer View All Answers
Write about a nested class and mention its use?
What is ifstream c++?
Differentiate between late binding and early binding.
What are references in c++? What is a local reference?
What do you understand by zombie objects in c++?
What are function prototypes?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
What is capacity in vector in c++?
How is c++ used in the real world?
Is c++ free?
Give example of a pure virtual function in c++?
Can I learn c++ without learning c?
What c++ is used for?
What is name hiding in c++?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.