Write a program to calculate factorial of a given number using recursion.
Answers
Answered by
6
Explanation:
Factorial program in C using recursion
#include<stdio.h>
long factorial(int);
int main()
{
int n;
long f;
printf("Enter an integer to find its factorial\n");
scanf("%d", &n);
Answered by
5
Explanation:
#include<stdio.h>
long factorial(int);
int main()
{
int n;
long f;
printf("Enter an integer to find its factorial\n");
scanf("%d", &n);
Similar questions