10 lines
232 B
JavaScript
10 lines
232 B
JavaScript
|
function main() {
|
||
|
var numAst = document.getElementById('numeroDeAsteriscos').value;
|
||
|
for (let a = 0; a < numAst; a++) {
|
||
|
for (let i = 0; i < numAst; i++) {
|
||
|
document.writeln(`*`);
|
||
|
}
|
||
|
document.writeln(`<br>`)
|
||
|
}
|
||
|
}
|