number=int(input("Enter a number:")) line=1 while line < number: print("* "* line) line=line+1 while line > 0: print("* "* line) line=line-1