Question: For the assignment, we will write a program that asks the user for two positive integers no greater than 75. The program should then display

For the assignment, we will write a program that asks the user for two positive integers no greater than 75. The program should then display a rectangle shape on the screen using the character X. The numbers entered by the user will be the lengths of each of the two sides of the square.

For example, if the user enters 5 and 7, the program should display the following:

XXXXX

XXXXX

XXXXX

XXXXX

XXXXX

XXXXX

XXXXX

If the user enters 8 and 8, the program should display the following:

XXXXXXXX

XXXXXXXX

XXXXXXXX

XXXXXXXX

XXXXXXXX

XXXXXXXX

XXXXXXXX

XXXXXXXX

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!