#include int main() { int i, num, fact; printf ("Enter the number: "); scanf ("%d", &num ); fact=1; for (i=1; i<=num; i++) fact=fact*i; printf("The factorial of %d is %d\n",num,fact); }