What output is produced by the following code fragment?

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


The output produced is:
1
5
9
13
17

Computer Science & Information Technology

You might also like to view...

Sorting helps to break data into subgroups. _________________________

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

Computer Science & Information Technology

How many times should text be clicked in order to select an entire paragraph?

A. two B. three C. four D. five

Computer Science & Information Technology

Logical errors are sometimes referred to as structural errors.

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

Computer Science & Information Technology

Which one of the following fire suppression systems poses the greatest risk of accidental discharge that damages equipment in a data center?

A. Closed head B. Dry pipe C. Deluge D. Preaction

Computer Science & Information Technology