a=[5,7,3,6,5,6,7,4]
resultado=graficaBarraVertical(a) // ['*****', '*******', '***', '******', '*****', '******', '*******', '****']
print("\n".join(resultado))
*****
*******
***
******
*****
******
*******
****
a=[5,7,3,6,5,6,7,4]
resultado=graficaBarraVertical(a, "-> ") // ['-> -> -> -> -> ', '-> -> -> -> -> -> -> ', '-> -> -> ', '-> -> -> -> -> -> ', '-> -> -> -> -> ', '-> -> -> -> -> -> ', '-> -> -> -> -> -> -> ', '-> -> -> -> ']
print("\n".join(resultado))
-> -> -> -> ->
-> -> -> -> -> -> ->
-> -> ->
-> -> -> -> -> ->
-> -> -> -> ->
-> -> -> -> -> ->
-> -> -> -> -> -> ->
-> -> -> ->
a=[5,7,3,6,5,6,7,4]
resultado=graficaBarraVertical(a, "M ") // [' M M ', ' M M M M ', 'M M M M M M ', 'M M M M M M M', 'M M M M M M M M', 'M M M M M M M M', 'M M M M M M M M']
print("\n".join(resultado))
M M
M M M M
M M M M M M
M M M M M M M
M M M M M M M M
M M M M M M M M
M M M M M M M M
a=[5,7,3,6,5,6,7,4]
resultado=graficaBarraVertical(a, "|--| ")
print("\n".join(resultado))
|--| |--|
|--| |--| |--| |--|
|--| |--| |--| |--| |--| |--|
|--| |--| |--| |--| |--| |--| |--|
|--| |--| |--| |--| |--| |--| |--| |--|
|--| |--| |--| |--| |--| |--| |--| |--|
|--| |--| |--| |--| |--| |--| |--| |--|
picoEstrella(3); // [" *", " * *", "* *"]
picoEstrella(5); // [" *", " * *", " * *", " * *", "* *"]
document.write("<pre>");
document.write(picoEstrella(10).join("\n"));
document.write("</pre>");
console.log(piramide(10).join("\n"));
picoEstrella(3) # [' *', ' * *', '* *']
picoEstrella(5) # [' *', ' * *', ' * *', ' * *', '* *']
echo "<pre>";
echo implode("<br>", picoEstrella(10));
echo "</pre>";
echo implode("\n", picoEstrella(10));
print("\n".join(picoEstrella(10)))
picoEstrella(3) # [' *', ' * *', '* *']
picoEstrella(5) # [' *', ' * *', ' * *', ' * *', '* *']