Script
#!/usr/local/bin/python3.7
print ("Enter the number of lines: ", end = "")
lines = int(input())
for i in range(0, lines):
lines = 25
for j in range(0, i + 1):
print(lines, end = " ")
lines = lines - 1
print("\r")
#!/usr/local/bin/python3.7
print ("Enter the number of lines: ", end = "")
lines = int(input())
for i in range(0, lines):
lines = 25
for j in range(0, i + 1):
print(lines, end = " ")
lines = lines - 1
print("\r")
Execution
Enter the number of lines: 25
25
25 24
25 24 23
25 24 23 22
25 24 23 22 21
25 24 23 22 21 20
25 24 23 22 21 20 19
25 24 23 22 21 20 19 18
25 24 23 22 21 20 19 18 17
25 24 23 22 21 20 19 18 17 16
25 24 23 22 21 20 19 18 17 16 15
25 24 23 22 21 20 19 18 17 16 15 14
25 24 23 22 21 20 19 18 17 16 15 14 13
25 24 23 22 21 20 19 18 17 16 15 14 13 12
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
No comments:
Post a Comment