The aim of the code was to create a scalene triangle (with the number 1) with the sharpest point pointing downwards. The program works until you put a input of more than 17 by which point the program ceases to use purely 1s

I have looked into the program mathematically and cant see a fault

```
n=int(input()) 
X=0
for j in range(0,n):
   X = (X*10)+1
print(X)
for i in range(1,n):
    X = (X-1)/10
    print(int(X))

```

Can you help find why?