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
What is the basic concept of c++?
What is the purpose of extern storage specifier?
Is c or c++ more useful?
Can we inherit constructor in c++?
Is c++ high level programming language?
What do nonglobal variables default to a) auto b) register c) static
Why do we use classes in programming?
What are the basics of local (auto) objects?
What is the difference between object-oriented programming and procedural programming?
Can you sort a set c++?
Differentiate between an array and a list?
Will c++ be replaced?
Explain the difference between c & c++?
What is the extraction operator and what does it do?
Write about the scope resolution operator?