109. 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: "))
b = n+1
for num in range(1,n+1):
b=b-1
for i in range(1,n+1):
if(i < num):
print ( " ", end=" " )
else:
print(b, end=" ")
print(" ")