Problem Description

Print square with only border stars.
Real Life: Understanding boundary detection.

Step-by-Step Logic:
1. Print star if first or last row
2. Print star if first or last column
3. Otherwise print space
4. Creates hollow effect

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next