Factorial - MarisaOJ: Marisa Online Judge

Factorial

Time limit: 1000 ms
Memory limit: 256 MB
Given an integer n, calculate n!=1×2×…×n. ### Input - One line containing an integer n. ### Output - Print the value of n!. ### Constraints - 1≤n≤15. ### Sample Input: 4 Output: 24