What output is produced by the following code fragment?

```
int num = 1, max = 20;
while (num < max)
{
if (num%2 == 0)
System.out.println(num);
num++;
}

```

The output produced is:
2
4
6
8
10
12
14
16
18

Computer Science & Information Technology

You might also like to view...

When you compare and ________ two documents, revisions from both copies of the document are merged into one new main document for reviewing

Fill in the blank(s) with correct word

Computer Science & Information Technology

Intelligent agents called commerce bots search online stores to find the best overall prices for specified products.

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

Computer Science & Information Technology