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 an array in c?

1016


what are the facialities provided by you after the selection of the student.

2201


What are loops c?

1015


How is a pointer variable declared?

1041


Are enumerations really portable?

992


about c language

1978


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2417


What is string length in c?

1047


What are the two types of functions in c?

966


Are the variables argc and argv are always local to main?

986


What are the characteristics of arrays in c?

1002


Does * p ++ increment p or what it points to?

1079


Why is this loop always executing once?

1016


Why we use int main and void main?

1041


Can a file other than a .h file be included with #include?

1127