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 function prototyping? What are its advantages?

1043


Differentiate between late binding and early binding. What are the advantages of early binding?

995


Write a function to find the nth item from the end of a linked list in a single pass.

936


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

1215


why and when we can declar member fuction as a private in the class?

2038


Is java the same as c++?

954


Explain the difference between c & c++?

1033


What is a node class in c++?

1038


Is c++ a pure oop language?

1041


Why we use #include iostream in c++?

1017


Is atoi safe?

1019


How many ways can a variable be initialized into in C++?

988


What are the benefits of pointers?

995


What is virtual function? Explain with an example

1044


What is the meaning of string in c++?

1031