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 _________ stage includes ALU operations, cache access, and register update.

A. decode B. execute C. fetch D. write back

Computer Science & Information Technology

Explain the di?erence between ODMG attributes and relationships.

What will be an ideal response?

Computer Science & Information Technology