maxsize = int(input("Enter a number: ")) count = 1 while count != maxsize : print("* " * count) count = count+1 while count != 0 : print("* " * count) count = count-1