#include int factorial(int n) { if(!n) return 1; return n * factorial(n-1); } int main() { int result, input; printf("Please input the number: "); scanf("%d", &input); result = factorial(input); printf("The factorial of %d is %d \n", input, result); return 0; }