Write a Python program to print inverted right triangle numbers in reverse order using for loop.
rows = int(input("Inverted Right Triangle Numbers in Reverse pattern Rows = ")) print("==Inverted Right Triangle of Numbers in Reverse Order Pattern==") for i in range(1, rows + 1): for j in range(rows, i - 1, -1): print(j, end = ' ') print()
This Python example displays the inverted right triangle where its numbers print in reverse order using a while loop.
rows = int(input("Inverted Right Triangle Numbers in Reverse pattern Rows = ")) print("==Inverted Right Triangle of Numbers in Reverse Order Pattern==") i = 1 while(i <= rows): j = rows while(j >= i): print(j, end = ' ') j = j - 1 print() i = i + 1
Inverted Right Triangle Numbers in Reverse pattern Rows = 13
==Inverted Right Triangle of Numbers in Reverse Order Pattern==
13 12 11 10 9 8 7 6 5 4 3 2 1
13 12 11 10 9 8 7 6 5 4 3 2
13 12 11 10 9 8 7 6 5 4 3
13 12 11 10 9 8 7 6 5 4
13 12 11 10 9 8 7 6 5
13 12 11 10 9 8 7 6
13 12 11 10 9 8 7
13 12 11 10 9 8
13 12 11 10 9
13 12 11 10
13 12 11
13 12
13