Printing Snails - Square
InterviewTime limit1sMemory limit512 MB
Given N, print a hollow N by N square outline of snail symbols, N+2 snails on the top and bottom lines and two snails per middle line.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Print snails on the first line and on line .
For lines 2 through , print snails and spaces.
Input
The first line gives an integer ().
Output
Print snails in order from line 1 through line .