Answers for "how write a program 100 factorial in c"

C
0

making factorial in c programming

#include <stdio.h>
 
int main()
{
  int i, num, fact = 1;
 
  printf("Enter Number to Calculate Factorial: n");
  scanf("%d", &num);
  
  for (i = 1; i <= num; i++){
      fact = fact * i;
  }
    
  printf("Factorial of %d = %dn", num, fact);
 
  return 0;
}
Posted by: Guest on June-28-2021

Code answers related to "how write a program 100 factorial in c"

Code answers related to "C"

Browse Popular Code Answers by Language