#include void main() { int n,i,factorial=1; printf("Enter a number : "); scanf("%d", &n); for(i=1; i<=n; i++) factorial = factorial * i; printf("Factorial value of %d = %d",n,factorial); }