Question: can someone write this in C++ that works on xcode!! Write a program that draws a square like box by using a character 'X' as
Write a program that draws a square like box by using a character 'X' as examples below. The program must use the while loop to draw a box as examples below. The program must prompts a user for an integer larger than 2. The program must re-prompt until a valid input is enter. The user input will then be used to set the size of the output. If a user input an even value, the program will increase it by one before drawing the box. Example 1: Input: 3 Output: XXX XXX XXX Example 2: Input: 4 Output: XXXXX XXXXX XXXXX XXXXX xxxxx Example 3 Input: 1 Please try again! Input: 2 Please try again! Input: 7 Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
