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 / n.muthukumar

#include

int main()
{
unsigned int i=0,j=0,sum=1,num;
printf("nEnter the limit for the series ");
scanf("%d",&num);

printf("%d",i);
while(sum
{
printf("%d ",sum);
i=j;
j=sum;
sum=i+j;

}



getch();
}

Is This Answer Correct ?    12 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the advantages of operator overloading?

1050


Write about the use of the virtual destructor?

1009


When is the copy constructor called?

1152


Explain deep copy?

1065


What is the use of vtable?

1154


What is private, public and protected inheritance?

1092


When are exception objects created?

1087


Can user-defined object be declared as static data member of another class?

1028


What is the purpose of extern storage specifier?

1194


What is c++ mutable?

1123


why is iostream::eof inside a loop condition considered wrong?

1062


What is abstraction in c++?

1364


What is while loops?

1063


Comment on local and global scope of a variable.

1170


Why namespace is used in c++?

1075