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