Develop a program which calculate the factorial n! = 1*2*... ...*n and output the result to the screen.
n is defined by user input.
Input Specification:
Input a positive integer. The integer are no more than 1000.
Output Specification:
For each test case, print in a line the value of n!.
Sample Input: 5 Sample Output: 120
Sample Input: 1 Sample Output: 1
Answers
Answered by
3
Answer:
Similar questions