import math t = int(raw_input())for i in xrange(t): n = int(raw_input()) print str(math.factorial(n))
3 1 2 5
1 2 120
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!