B
Bruce Lee 646
Write a program that reads in the size of the side of a square and then prints
a hollow square of that size out of asterisks and blanks. Your program should
work for squares of all side sizes between 1 and 20. For example, if your
program reads a size of 5, it should print
*****
* *
* *
* *
*****
Am I supposed to type all of the possible outputs between 1 and 20 and use a
selection structure to choose which one? That's the only thing I can think of.
is there another way?
a hollow square of that size out of asterisks and blanks. Your program should
work for squares of all side sizes between 1 and 20. For example, if your
program reads a size of 5, it should print
*****
* *
* *
* *
*****
Am I supposed to type all of the possible outputs between 1 and 20 and use a
selection structure to choose which one? That's the only thing I can think of.
is there another way?