/***************************************************** * Section 15 * M/c No : M * Roll No : 18CS100XY * Names : Soumyajit Dey, Aritra Hazra * Assignment No : 3a * Description : Program to find factorial of integers *****************************************************/ #include int main() { int num; double fact = 1.0; printf("Enter the Integer: "); scanf("%d", &num); printf("%d! = ", num); while ( num > 0 ) { fact = fact * num; num--; } printf("%0.0lf\n", fact); return 0; }