Write the program for fibonacci in c++?
Answer Posted / kishor niit ottapalam
#include<iostream>
int main()
{
int x,y;
x=y=1;
while (x<200)
{
cout<<y<<endl;
x=x+y;
y=x-y;
}
return 0;
}
| Is This Answer Correct ? | 119 Yes | 82 No |
Post New Answer View All Answers
why is c++ called oops? Explain
what are the decision making statements in C++? Explain if statement with an example?
Define friend function.
How would you use qsort() function to sort an array of structures?
What does h mean in maths?
How do you master coding?
What are c++ files?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
Is there any function that can skip certain number of characters present in the input stream?
Define pre-condition and post-condition to a member function in c++?
Explain operator overloading.
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
What is virtual destructor ans explain its use?
What are vectors used for in c++?
What does std :: flush do?