Question: Print a square of #, each character separated by a O. The size of the square will be read in input. Verify that the input

 Print a square of #, each character separated by a O.

Print a square of #, each character separated by a O. The size of the square will be read in input. Verify that the input is in the range [1.7), otherwise print "The input must be in the range [1;7." Hint: Make sure that the line does not finish by a O. Make sure that there is not new line at the end of the last line. For example: Input Output #0#0#0#0# #0#0#0#0# size-5#0#0#0#0# #0#0#0#0# #0#0#0#0#

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!