write a program that finds the factorial of a number using
recursion?
Answer Posted / sheenu singla
//program to find the factorial of a number
#include<stdio.h>
#include<conio.h>
void main()
{
int a,fact=1;
for(a=1;a<=5;a++)
fact=fact*a;
}
printf("%d",fact);
getch();
}
| Is This Answer Correct ? | 18 Yes | 4 No |
Post New Answer View All Answers
Can main () be called recursively?
Is c is a high level language?
What are the 3 types of structures?
How macro execution is faster than function ?
Tell me what is null pointer in c?
What is a MAC Address?
Why is c so powerful?
Explain the difference between #include "..." And #include <...> In c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
c program for searching a student details among 10 student details
What are types of functions?
What does c mean in basketball?
What is hungarian notation? Is it worthwhile?
Why should I use standard library functions instead of writing my own?
Why do some versions of toupper act strangely if given an upper-case letter?