a = int(input()) fact = 1if(a == 0): print("1")else: for i in range(a): fact = fact * i fact *= aprint(fact)
Standard input is empty
1 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!