Write a for loop that prints all the even numbers from 1 to 101.

What will be an ideal response?

```
for(i=1; i<101; i++) {
if (i % 2 == 0)
document.write(i);
}

```

Computer Science & Information Technology

You might also like to view...

When pasting a range of cells, this cell needs to be selected in the paste area

A) Center cell B) Bottom right cell C) Top left cell

Computer Science & Information Technology

Windows Images can be added to the Deployment Store

Indicate whether the statement is true or false

Computer Science & Information Technology