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

What is a binary file? List the merits and demerits of the binary file usagein C++.

1308


Define whitespace in C++.

1216


Do you know what are pure virtual functions?

1152


What is vector string in c++?

1090


Explain the differences between list x; & list x();.

1018


What is the disadvantage of using a macro?

1127


How many static variables are created if you put one static member into a template class definition?

1048


What is lambda expression c++?

1059


Is java a c++?

1050


Which one between if-else and switch is more efficient?

1076


What is pointer with example?

1062


Is C++ case sensitive a) False b) Depends on implementation c) True

1084


Is sorted c++?

1109


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

1034


Why do you use the namespace feature?

1092