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

Which software is best for programming?

1102


How do you define a class in c++?

1044


What is set in c++?

1082


What is a tree in c++?

928


Is java based off c++?

940


How do we implement inheritance in c++?

1090


Difference between an inspector and a mutator

1291


Why we use #include iostream in c++?

1012


What is the latest c++ version?

1065


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2467


How do you traverse a btree in backward in-order?

989


Can a built-in function be recursive?

984


How do I run a program in notepad ++?

1066


What is the prototype of printf function?

1127


What is constructor and destructor in c++?

1066