Question #345805

given an integer number n as input.write a program to print the hollow right angled traingular pattern of n lines.(note:there is a space after each asterisk(*) character)


Expert's answer

print("Enter n: ")
n = int( input() )


for i in range(n):
    print("*", end=' ')
for i in range(n):
    print("*".rjust(i*2))
LATEST TUTORIALS
APPROVED BY CLIENTS