The following code should print whether integer value is odd or even:

```
switch (value % 2) {
case 0:
cout << "Even integer" << endl;
case 1:
cout << "Odd integer" << endl;
}
```

case 0 needs a break statement.

Computer Science & Information Technology

You might also like to view...

When you double-click a file name, Windows opens a(n) ____ that you can use to view and modify the file contents.

A. file tag B. application C. Search box D. properties window

Computer Science & Information Technology

______ is a graph that is displayed in a cell, contains data marker to identify the high and low points, negative points, first point, last point.

a. Sparklines b. Data bar c. Line chart d. Bar chart

Computer Science & Information Technology