107. Python Program to Print Number Triangle.
How does this program work?
- This program is used to Print Number Triangle using Python.
Here is the code
n = int(input( "Enter the number of rows: "))
num = n + 1
for i in range(0, n):
num = num - 1
for j in range(0, i+1):
print(num, end = " ")
print(" ")