Question: height = int ( input ( ) ) # Read the width of the rectangle from the user width = int ( input ( )
height intinput
# Read the width of the rectangle from the user
width intinput
# Loop through each row i from to height
for i in range height:
# Loop through each column j from to width
for j in range width:
# Print an asterisk for each column without moving to the next line
print end
# Move to the next line after printing all columns for the current row
print
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
