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...

compute the nth mumber in the fibonacci sequence?

Answer Posted / sweety

main()
{ int a=0,b=1,c,n,i;
printf("enter nth number");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
c=a+b;
printf("fibonacci series is %d",&c);
a=b;
b=c;
}
getch();
}

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrong with this program statement? void = 10;

1266


What is typedef example?

1197


How can you find the exact size of a data type in c?

1007


Is null always equal to 0(zero)?

1044


How many keywords are there in c?

1089


Is c weakly typed?

1034


What are the valid places to have keyword “break”?

1095


What is the full form of getch?

1290


When should structures be passed by values or by references?

1053


What is meant by errors and debugging?

1117


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2076


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

2304


What is a function in c?

1595


What is cohesion in c?

987


Differentiate between a for loop and a while loop? What are it uses?

1193