Please solve the following program:
Attachments:
Answers
Answered by
1
var stopAt = 20; // you can change this number if you want
var counter = 0;
for (var i = 1; i <= stopAt; i += 2) {
document.write(i + counter + "<br>");
counter += i;
}
Similar questions
India Languages,
6 months ago
Math,
6 months ago
Social Sciences,
6 months ago
Science,
11 months ago
Biology,
11 months ago