Write a program that:
- Reads the integer from the
stdin; - Prints the value of its factorial.
Ensure your program correctly calculates the factorial value of 0 and all positive numbers.
Write a program that:
stdin;Ensure your program correctly calculates the factorial value of 0 and all positive numbers.
Sample Input 1:
5Sample Output 1:
120Sample Input 2:
0Sample Output 2:
1Create a free account to access the full topic