|
|
@ -99,7 +99,7 @@ function design3(input) {
|
|
|
|
if (i == 0 || (j == 0 || j == (i - 1))) { // Check if we're at the beginning or end of the line
|
|
|
|
if (i == 0 || (j == 0 || j == (i - 1))) { // Check if we're at the beginning or end of the line
|
|
|
|
outputString += "*";
|
|
|
|
outputString += "*";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
outputString += " ";
|
|
|
|
outputString += " ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -114,7 +114,7 @@ function design3(input) {
|
|
|
|
if ((i == 0 || (j == 0 || j == (i - 1)))) { // Check if we're at the beginning or end of the line
|
|
|
|
if ((i == 0 || (j == 0 || j == (i - 1)))) { // Check if we're at the beginning or end of the line
|
|
|
|
outputString += "*";
|
|
|
|
outputString += "*";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
outputString += " ";
|
|
|
|
outputString += " ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|