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
What is a binary file? List the merits and demerits of the binary file usagein C++.
Define whitespace in C++.
Do you know what are pure virtual functions?
What is vector string in c++?
Explain the differences between list x; & list x();.
What is the disadvantage of using a macro?
How many static variables are created if you put one static member into a template class definition?
What is lambda expression c++?
Is java a c++?
Which one between if-else and switch is more efficient?
What is pointer with example?
Is C++ case sensitive a) False b) Depends on implementation c) True
Is sorted c++?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
Why do you use the namespace feature?