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's the most powerful programming language?

991


Is multimap sorted c++?

955


Write a program using display() function which takes two arguments.

1013


Is string data type in c++?

977


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

962


Explain class invariant.

995


Is c++ map a hash table?

976


What is the arrow operator in c++?

952


Differentiate between late binding and early binding.

1202


Evaluate !(1&&1||1&&0) a) Error b) False c) True

1149


What is atoi in c++?

1017


Should I learn c or c++ or c#?

954


Explain bubble sorting.

1026


describe private access specifiers?

1137


What is ctime c++?

1062