in reply to Printing a hollow square of Asterisks
Not really an answer to your question, but some may find this interesting/fun: boxes.
HTH,