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 type is sizeof?

990


What does struct node * mean?

963


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1028


When should the const modifier be used?

1058


What is null in c?

1002


please send me the code for multiplying sparse matrix using c

2118


Do string constants represent numerical values?

1321


What does static variable mean in c?

1059


What does double pointer mean in c?

1071


What is spaghetti programming?

1069


Distinguish between actual and formal arguments.

1011


Do you know what are bitwise shift operators in c programming?

1057


What will the preprocessor do for a program?

1014


What is logical error?

1060


What is scope and lifetime of a variable in c?

988