size = int(input("Enter a number: ")) for size in range(size): print("+ " * size) for size in range(size): print("+ " * size)