def print_box(width, height): for _ in range(height): row = '+ ' * width print(row) def main(): try: width = int(input("Enter a width: ")) height = int(input("Enter a height: ")) print("\nHere is your box:") print_box(width, height) except ValueError: print("Please enter valid integers for width and height.") if __name__ == "__main__": main()