Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the use of endl in c++?

1023


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1073


Mention the ways in which parameterized can be invoked.

933


Do you know about C++ 11 standard?

1090


Show the declaration for a static function pointer.

1054


Explain container class.

1256


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1331


How do I write a c++ program?

1119


What are proxy objects in c++?

1191


What is difference between class and function?

1097


What is the difference between reference and pointer?

1168


What are vtable and vptr?

1150


Is std :: string immutable?

1051


Is map sorted c++?

1011


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

1067