wes d2a2ba9e15 first commit há 4 anos atrás
..
README.md d2a2ba9e15 first commit há 4 anos atrás
code.cpp d2a2ba9e15 first commit há 4 anos atrás
unitTest.cpp d2a2ba9e15 first commit há 4 anos atrás

README.md

Making a Box

by Helen Yu tags: strings, formatting

Summary

Create a function that creates a box based on dimension n. Examples makeBox(5) ➞ [ "#####", "# #", "# #", "# #", "#####" ] makeBox(3) ➞ [ "###", "# #", "###" ] makeBox(2) ➞ [ "##", "##" ] makeBox(1) ➞ [ "#" ] Notes N/A

Instructions

Create a function that creates a box based on dimension n.

Examples

makeBox(5) ➞ [
  "#####",
  "#   #",
  "#   #",
  "#   #",
  "#####"
]

makeBox(3) ➞ [
  "###",
  "# #",
  "###"
]

makeBox(2) ➞ [
  "##",
  "##"
]

makeBox(1) ➞ [
  "#"
]

Notes

N/A