I try solve this problem I know that, I can do that like
for i in range(1,input()): print int(str(i)*i)
It works, but I can\'t use str
I tried doing it this way (notice I took floor division here):
for i in range(1,int(input())): print(i*((10**i)//9))
for input 5, it yields:
1 22 333 4444