How To Print Row Triangle
#ROW TRIANGLE
print('ROW TRIANGLE')
n=int(input('Enter Number Of Rows Till Which Triangle To Be Printed :- '))
y=1
print('The Row Triangle For Your Input :-')
for i in range(n+1):
x=''
for j in range(i):
x=x+str(y)+' '
y+=1
print (x)
Comments
Post a Comment