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 / techbots

#include<iostream>
void main()
{
int x=1,y=0;
while (x<200)
{
cout<<y<<endl;
x=x+y;
y=x-y;
}
}

Is This Answer Correct ?    34 Yes 53 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write about a nested class and mention its use?

1049


What is ifstream c++?

983


Differentiate between late binding and early binding.

1202


What are references in c++? What is a local reference?

986


What do you understand by zombie objects in c++?

1042


What are function prototypes?

1191


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

1011


What is capacity in vector in c++?

934


How is c++ used in the real world?

982


Is c++ free?

1042


Give example of a pure virtual function in c++?

1088


Can I learn c++ without learning c?

951


What c++ is used for?

1012


What is name hiding in c++?

1110


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

1270