• admin@embedclogic.com

C- Program to find the factorial of given number

C- Program to find the factorial of given number

Prerequisite:

  • Familiar with if-else statement
  • Familiar with for loop
  • Familiar with C-Operator

Factorial of a number:

  • fact(5) = 5*4*3*2*1
  • fact(n) = n*(n-1)*(n-2)*(n-3)…………(n)

Program