Code

```
num = int(input(“Enter the number of lines: “))
for i in range(10):
  for j in range(1,i):
    print(num, the end='')
num = num+1
print() 

```

I am writing a program which is should be like this.

```
Enter the number of lines: 10

11 12 13 14 15 16 17 18 19 20 
21 22 23 24 25 26 27 28 29 
30 31 32 33 34 35 36 37 
38 39 40 41 42 43 44 
45 46 47 48 49 50
51 52 53 54 55
56 57 58 59
60 61 62
63 64 
65

```

I don’t have any example from the lecturer, i just following the step from website, but the output of my code is like this: i am confused where i made the mistake, don’t get any clue to wear `for` or `while`. Please help me, thank you.

```
10
11 12 
13 14 15 
16 17 18 19 
20 21 22 23 24 
25 26 27 28 29 30 
31 32 33 34 35 36 37 
38 39 40 41 42 43 44 45

```