write a programe to find the factorial of given number
using recursion
Answer Posted / hari.11
t 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 ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is main () in c language?
What is the use of f in c?
What is dynamic dispatch in c++?
What is logical error?
why programs in c are running with out #include
How arrays can be passed to a user defined function
Is javascript based on c?
What are different types of operators?
Explain enumerated types.
What is the use of #define preprocessor in c?
What should malloc() do?
Why & is used in scanf in c?
What does c in a circle mean?
What are the functions to open and close file in c language?
Are there namespaces in c?