15 lines
352 B
JavaScript
15 lines
352 B
JavaScript
function main() {
|
|
var numAst = document.getElementById('numeroDeAsteriscos').value;
|
|
for (let a = 1; a < numAst; a++) {
|
|
|
|
for (let i = 0; i < a; i++) {
|
|
document.writeln(`<img src="./google.png" width=250px height=250px>`);
|
|
}
|
|
document.writeln(`<br>`)
|
|
|
|
}
|
|
for (let i = 0; i < numAst / 2; i++) {
|
|
document.writeln(`*<br>`)
|
|
}
|
|
}
|