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

Is it possible for the objects to read and write themselves?

1167


Is there a c++ certification?

1103


How does c++ structure differ from c++ class?

1185


Should the this pointer can be used in the constructor?

1076


What do manipulators do?

1066


Will a catch statement catch a derived exception if it is looking for the base class?

1063


How is c++ used in the real world?

1090


Write a program in C++ for Fibonacci series

1249


How can you create a virtual copy constructor?

1133


What are the advantages of using typedef in a program?

1183


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

1088


Why we use #include conio h in c++?

1102


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1256


Write a code/algo to find the frequency of each element in an array?

1165


What is vector processing?

1206