js-exercises/cuboAsteriscos/10.js

10 lines
232 B
JavaScript
Raw Normal View History

2024-01-18 12:22:02 +01:00
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>`)
}
}