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
Explain what are its uses in c programming?
In C language, a variable name cannot contain?
What is %s and %d in c?
What are the storage classes in C?
What is getch?
main() { printf("hello"); fork(); }
What are the basic data types associated with c?
How can I pad a string to a known length?
What is a char in c?
What is the use of putchar function?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
Can the curly brackets { } be used to enclose a single line of code?
I need testPalindrome and removeSpace
#include
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is a program flowchart?