- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
Program:
initial = 1
final = 2
number = final
for row in range(2, 6):
for col in range(initial, final):
number -= 1
print(number, end=' ')
print("")
initial = final
final += row
number = final
final = 2
number = final
for row in range(2, 6):
for col in range(initial, final):
number -= 1
print(number, end=' ')
print("")
initial = final
final += row
number = final
Comments
Post a Comment