number = int(input("enter a number: ")) for number in range(1, number + 1): print("*" * number ) number = number - 1 while number > 0: print("*" * number ) number = number - 1