RosettaCodeData/Task/Loops-N-plus-one-half/Python/loops-n-plus-one-half-4.py

8 lines
109 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
n, i = 10, 1
while True:
print(i, end="")
i += 1
if i > n:
break
print(", ", end="")