A repository I use for tutorial purposes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 line
117 B

  1. import sys
  2. number = int(sys.argv[1])
  3. total = 1
  4. i = 1
  5. while i < number + 1:
  6. total = total * i
  7. i += 1
  8. print(total)