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
Why does notstrcat(string, "!");Work?
Why c is called a middle level language?
What is the use of a semicolon (;) at the end of every program statement?
Can you subtract pointers from each other? Why would you?
Why can’t we compare structures?
diff between exptected result and requirement?
Why we use void main in c?
Explain about block scope in c?
i got 75% in all semester am i eligible for your company
How pointers are declared?
What does %c mean in c?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What is the full form of getch?
What does the characters “r” and “w” mean when writing programs that will make use of files?
Explain how can type-insensitive macros be created?