Computer Science, asked by Madhu123mri, 1 year ago

Please solve the following program:

Attachments:

Answers

Answered by Anonymous
1

\textbf{Hi}

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