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 c++ low level?

1030


Which is the best c++ compiler?

1048


How do you flush a buffer in c++?

1094


write a function signature with various number of parameters.

1035


Can I learn c++ without c?

1140


What are the main features of c++?

1002


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

1053


What sorting algorithm does c++ use?

1141


what is C++ exceptional handling?

1170


What does iomanip mean in c++?

1198


Mention the ways in which parameterized can be invoked. Give an example of each.

1056


What is the full form nasa?

1091


Write about the retrieval of n number of objects during the process of delete[]p?

1018


What is a string example?

1067


Explain the isa and hasa class relationships. How would you implement each?

1118