python_intership/task1/task1.py
2023-11-09 13:28:19 +03:00

10 lines
154 B
Python

import sys
n = int(sys.argv[1])
m = int(sys.argv[2])
st = 1
while True:
print(st, end='')
st = 1+(st+m-2)%n
if st == 1:
break
print()