x=int(input("enter a number: "))+1 i=x-2 for number in range(x): print("* " * number) for number in range(x-1): print("* " * i) i-=1