| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 12770 | GEC1506 Factorials |
|
| 12774 | GEC1506 Two People Helloworld |
|
Description
We have introduced the loop and condition concept in our course, you can use these concepts to finish the following task.
Calculate N! = 1×2×...×(N-1)×N.
Note that
- You DO NOT need to consider the number exceed the range of integer or long long data type.
- 0! = 1
Input
A line of text with a number.
Output
A line with the factorial result.