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 exit() function?
Is int a keyword in c?
What does 1f stand for?
Explain how do you override a defined macro?
Differentiate between full, complete & perfect binary trees.
Explain what does it mean when a pointer is used in an if statement?
How the c program is executed?
What are header files and explain what are its uses in c programming?
plz let me know how to become a telecom protocol tester. thank you.
What does %p mean?
What is the use of volatile?
what are non standard function in c
praagnovation
What is an identifier?
What is the heap?