Write a program that reads an integer and displa

Question

Write a program that reads an integer and displays, using asterisks, a filled and hollow square, placed next to each other. For example if the side length is 5, the program should display

***** *****

***** *      *

***** *      *

***** *      *

***** *****

It would be nice to see this accomplished with nested loops. You'll earn more points for nested loops.

Details
Purchase An Answer Below

Have a similar question?