ShriRam Changed status to publish August 21, 2023
s = int(input(“Please enter the number of rows : “))
# The value t is representing the rows value
t = s
# For downward pattern we always prefer reversed loop
for i in range(s, 0, -1):
for j in range(0, i):
# As this time we have not increased the `i that means the same number will be printed as we have also equated the t=s
print(t, end=’ ‘)
print()
ShriRam Changed status to publish August 21, 2023