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...

The ____________ algorithm is much more efficient than a sequential search when the data set is very large.

a. random search b. quick sort c. binary search d. combinatorial search

Computer Science & Information Technology

Animation Painter can copy animation settings from one object on one slide to another object on another slide

Indicate whether the statement is true or false

Computer Science & Information Technology

Setting the list-style-type to ____ causes the bullets in front of each list item to not be displayed.

A. zero B. none C. 0 D. hide

Computer Science & Information Technology

Studies have shown that more than 25 percent of all business worksheets have errors.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology