Factorial - MarisaOJ: Marisa Online Judge

Factorial

Time limit: 1000 ms
Memory limit: 256 MB
Given an integer $n$, calculate $n! = 1 \times 2 \times \ldots \times n$. ### Input - One line containing an integer $n$. ### Output - Print the value of $n!$. ### Constraints - $1 \le n \le 15$. ### Sample Input: ``` 4 ``` Output: ``` 24 ```