Question: using for loops, 1) ask the user to enter a number from 1 to 20 2) without having a print statement to print the entire

using for loops,

1) ask the user to enter a number from 1 to 20

2) without having a print statement to print the entire square at once, print a hollow square with the size of the number they entered.

So, if they entered 3:

***

* *

***

If they entered 4

****

* *

* *

****

Hint: Try making a solid square before you make a hollow one.

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!