Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started