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's the most powerful programming language?
Is multimap sorted c++?
Write a program using display() function which takes two arguments.
Is string data type in c++?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
Explain class invariant.
Is c++ map a hash table?
What is the arrow operator in c++?
Differentiate between late binding and early binding.
Evaluate !(1&&1||1&&0) a) Error b) False c) True
What is atoi in c++?
Should I learn c or c++ or c#?
Explain bubble sorting.
describe private access specifiers?
What is ctime c++?