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 / abhilash

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

}


getch();
}

Is This Answer Correct ?    14 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does count ++ do in c++?

1150


What are the advantages of using friend classes?

1080


How many characters are recognized by ANSI C++?

1356


What does n mean in c++?

1070


What is the c++ code?

1075


What is the precedence when there is a global variable and a local variable in the program with the same name?

1063


Is multimap sorted c++?

950


List down the guideline that should be followed while using friend function.

1004


If a header file is included twice by mistake in the program, will it give any error?

992


What are the differences between malloc() and calloc()?

1102


What is auto used for in c++?

1009


How can you tell what shell you are running on unix system?

1052


What are c++ variables?

999


What are the uses of typedef in a program?

1025


What do you understand by zombie objects in c++?

1035