Question: C++: Write a program that draws a plus sign using the letter X in a size entered by a user. The size must always be

C++:

Write a program that draws a plus sign using the letter X in a size entered by a user. The size must always be an odd number. If the user enters an even number, it should be the next higher odd number.

Example 1: Input: 3 X XXX X

Example 2: Input: 5 X X XXXXX X X

Example 3 Input: 6 X X X XXXXXXX X X X

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!