Tính giai thừa

View as PDF



Author:
Problem types
Points: 800 (p) Time limit: 5.0s Memory limit: 1023M Input: stdin Output: stdout

Tính \(n!\).

Input

  • Số test \(t (t \le 100)\)
  • \(t\) dòng, mỗi dòng 1 số nguyên không âm \(n (n \le 20)\)

Output

  • \(t\) dòng, \(n!\)

Example

Test 1

Input
3
2 
3
4 
Output
2
6
24

Comments (18)

Most recent
Loading comments...