| 
				
					 | 
			5 лет назад | |
|---|---|---|
| .. | ||
| README.md | 5 лет назад | |
| code.cpp | 5 лет назад | |
| unitTest.cpp | 5 лет назад | |
by Helen Yu tags: strings, formatting
Create a function that creates a box based on dimension n. Examples makeBox(5) ➞ [ "#####", "# #", "# #", "# #", "#####" ] makeBox(3) ➞ [ "###", "# #", "###" ] makeBox(2) ➞ [ "##", "##" ] makeBox(1) ➞ [ "#" ] Notes N/A
Create a function that creates a box based on dimension n.
makeBox(5) ➞ [
  "#####",
  "#   #",
  "#   #",
  "#   #",
  "#####"
]
makeBox(3) ➞ [
  "###",
  "# #",
  "###"
]
makeBox(2) ➞ [
  "##",
  "##"
]
makeBox(1) ➞ [
  "#"
]
N/A