Computer Science, asked by mohityadavbond4058, 1 year ago

Write a program to calculate factorial of a given number using recursion.

Answers

Answered by Anonymous
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 Brâiñlynêha
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