89. 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
rows = int(input( "Enter the Number of Rows: "))
num = 1
print( "Floyd's Triangle: ")
for i in range(1, rows + 1):
for j in range(1, i + 1):
print(num, end = ' ')
num = num + 1
print()