Class 12(C-Program)Factorial of any Number March 16, 2021 - by Prajwal Rai - Leave a Comment /*Factorial*/ #include<stdio.h> main() { int c, n, f = 1; printf("Enter a number to calculate its factorial\n"); scanf("%d", &n); for (c = 1; c <= n; c++) f = f * c; printf("Factorial of %d = %d\n", n, f); }