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
What is an array in c?
what are the facialities provided by you after the selection of the student.
What are loops c?
How is a pointer variable declared?
Are enumerations really portable?
about c language
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
What is string length in c?
What are the two types of functions in c?
Are the variables argc and argv are always local to main?
What are the characteristics of arrays in c?
Does * p ++ increment p or what it points to?
Why is this loop always executing once?
Why we use int main and void main?
Can a file other than a .h file be included with #include?