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