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
Get step-by-step solutions from verified subject matter experts
