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