C program for factorial of a given number using Recursion, While loop, for loop

Опубликовано: 06 Октябрь 2024
на канале: Coding Databits
38
1

factorial of a number in c using recursion.
factorial program in c using a function.
factorial of a number in c.
factorial of a number in c using while loop
factorial of a number in c using for loop.
factorial program in c++


Factorial of a number is the multiplication of all numbers from 1 till the number for example (5 factorial = 5*4*3*2*1 = 120)

Q. How to find the factorial of a large number in the C language?
Ans. For that, you have to use variable with (long int) so that it can store larger number in place of (int variables).