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 a programe to find the factorial of given number
using recursion

Answer Posted / hari

int fact(int n)
{
if(n==1)
return 1;
else
return(n*fact(n-1));
}

for further queries and discussions, just check these out !!!

http://forum.campusmaniac.com/
http://www.campusmaniac.com/

Is This Answer Correct ?    13 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is exit() function?

1074


Is int a keyword in c?

1037


What does 1f stand for?

1236


Explain how do you override a defined macro?

1135


Differentiate between full, complete & perfect binary trees.

1170


Explain what does it mean when a pointer is used in an if statement?

1108


How the c program is executed?

1198


What are header files and explain what are its uses in c programming?

1173


plz let me know how to become a telecom protocol tester. thank you.

2239


What does %p mean?

1157


What is the use of volatile?

1151


what are non standard function in c

1969


praagnovation

2351


What is an identifier?

1087


What is the heap?

1259