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)
print("Enter n: ")
n = int( input() )
for i in range(n):
  print("*", end=' ')
for i in range(n):
  print("*".rjust(i*2))
Comments
Leave a comment