The following code should output the even integers from 2 to 100:

```
counter = 2;
do
{
Console.WriteLine(counter);
counter += 2;
} While (counter < 100);
```


While should be while and the loop-continuation condition should use <= rather
than <.

Computer Science & Information Technology

You might also like to view...

The ArrayList class implements the ____ interface.

A. List B. Arrays C. Queue D. Set

Computer Science & Information Technology

Under MS-DOS, each physical device attached to the system is described in a special file called a __________.

a. port b. device file c. device driver d. The premise of this question is false.

Computer Science & Information Technology

A formal log-on procedure is the operating system's first line of defense. Explain how this works.

What will be an ideal response?

Computer Science & Information Technology

Of the following, which is not a method of installing Windows 7?

A. Over the network B. CD-ROM C. DVD-ROM D. USB flash drive E. Image

Computer Science & Information Technology