Please give me the answer
It's Urgent
Attachments:
Answers
Answered by
0
<HTML>
< TITLE > WE ARE THE BEST PROGRAMMERS </TITLE>
<HEAD>
<BODY>
"*
**
***
****
*****
******
********
*******.........."
<BODY>
</HEAD>
< TITLE > WE ARE THE BEST PROGRAMMERS </TITLE>
<HEAD>
<BODY>
"*
**
***
****
*****
******
********
*******.........."
<BODY>
</HEAD>
Ash34567:
Do you know something!
Answered by
1
Hi
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Asterisk Rows Printer</title>
</head>
<body>
<script>
var howManyRows = parseInt(prompt('How many rows you want?'));
var currentRow = '';
for (var i = 0; i <= howManyRows; i++) {
for (var j = 0; j < i; j++) {
currentRow += "*";
}
currentRow += "<br>";
};
document.write(currentRow);
</script>
</body>
</html>
Similar questions