Make a square box!

From codewars.com by Edxael  (that’s me)

Description:

Easy; Make a box

Given a number as a parameter, return an array containing strings which form a box.Like this:

n = 5

n = 3

— My Code —

Note:  The following code is not written by me, it was created by another user of codewars.com it belongs to the user: njohnson7


 

ALGORITHMS


Copyright 2017. All rights reserved.

Posted January 17, 2017 by Edmundo in category "Ruby Examples