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


Please Help Members By Posting Answers For Below Questions

What is the basic concept of c++?

1007


What is the purpose of extern storage specifier?

1183


Is c or c++ more useful?

1036


Can we inherit constructor in c++?

1084


Is c++ high level programming language?

1126


What do nonglobal variables default to a) auto b) register c) static

1148


Why do we use classes in programming?

1028


What are the basics of local (auto) objects?

1140


What is the difference between object-oriented programming and procedural programming?

1224


Can you sort a set c++?

986


Differentiate between an array and a list?

1172


Will c++ be replaced?

1040


Explain the difference between c & c++?

1084


What is the extraction operator and what does it do?

1081


Write about the scope resolution operator?

1023