A collection of programs and interview questions
for y in range(1, input()): print(y * (10 ** y - 1) // 9)
output
1
22
333
4444
55555
No comments:
Post a Comment