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

#include<iostream.h>
void main()
{
int a=-1;b=1,c;
for(int i=0;i<200;i++)
{
c=a+b;
cout<<c<<"\t";
a=b;
b=c;
}

Is This Answer Correct ?    83 Yes 65 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is encapsulation in c++ with example?

953


What is the function of I/O library in C++ ?

1117


What are the various storage classes in C++?

1088


What language is a dll written in?

965


What is the oldest programming language?

948


What is the size of a vector?

1060


what is C++ objects?

1151


How do you invoke a base member function from a derived class in which you have not overridden that function?

1071


What is object file? How can you access object file?

1122


What is c++ & why it is used?

1029


Is python written in c or c++?

1090


When must you use a pointer rather than a reference?

988


What does std :: flush do?

1076


What is guard code in c++?

1109


What are the advantages of c++?

1763