92. 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
num = int(input( "Enter a number: "))
for i in range(0,num):
for j in range(1,i+1):
print(j,end= " ")
print(1)
print(" ")