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

Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2545


What is the benefit of c++?

1203


What is the difference between a pointer and a link in c ++?

1108


How many types of modularization are there in c++?

1120


Does c++ have arraylist?

1081


What are the benefits of operator overloading?

1271


What is difference between array and vector in c++?

1075


How can a called function determine the number of arguments that have been passed to it?

1194


Which should be more useful: the protected and public virtuals?

1089


Is it possible to write a c++ template to check for a function's existence?

1076


Explain the difference between using macro and inline functions?

1182


What language does google use?

1240


What do you mean by storage classes?

1657


What is fflush c++?

1077


How the virtual functions maintain the call up?

1284