Homec examples c program factorial of number byAjay Kadtan •September 30, 2020 0 program:#include<stdio.h> int main() { int number,factorial=1,i; printf("Enter a number to calculate it's factorial: \n"); scanf("%d",&number); for(i=1;i<=number;i++) { factorial=factorial*i; } printf("%d!=%d\n",number,factorial); return 0; } output: Tags: c examples Facebook Twitter