Write the program for fibonacci in c++?
Answer Posted / bharghavi
#include<iostream.h>
void main()
{
int a=-1;b=1,c;
for(int i=0;i<200;i++)
{
c=a+b;
cout<<c<<"\t";
a=b;
b=c;
}
| Is This Answer Correct ? | 83 Yes | 65 No |
Post New Answer View All Answers
What is the use of endl in c++?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
Mention the ways in which parameterized can be invoked.
Do you know about C++ 11 standard?
Show the declaration for a static function pointer.
Explain container class.
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
How do I write a c++ program?
What are proxy objects in c++?
What is difference between class and function?
What is the difference between reference and pointer?
What are vtable and vptr?
Is std :: string immutable?
Is map sorted c++?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.