Question: Write a program that asks the user for two positive integers between 2 and 10 (inclusive) to use for the width and height of a

Write a program that asks the user for two positive integers between 2 and 10 (inclusive) to use for the width and height of a rectangle. If the numbers are different, the larger of the two numbers should be used for the width and the smaller for the height. The program should then display a rectangle of this size on the screen using the character 'X'. For example, if the user enters 2 and 5 (in either order), the program should display the following:

XXXXX XXXXX 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem you will need to write a program that Asks the user for two positive integers ... View full answer

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!