How To Print Customised Column Triangle
#CUSTOM COLUMN TRIANGLE
print('CUSTOMISED COLUMN TRIANGLE')
c=int(input('Enter Column Value :- '))
r=int(input('Enter Number of Rows :- '))
d=int(input('Enter Column Value Difference :- '))
x=' '
for i in range(1,r+1):
ac=c+(i-1)*d
x=x+str(ac)+' '
print(x)
Made By :-
Nilay Saraf
Comments
Post a Comment