A repository I use for tutorial purposes.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
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)