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...
?An IS project is classified as a(n) ______ if it creates a competitive advantage that enables the organization to earn a greater than normal return on investment than its competitors.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology
A house circuit breaker panel protects all appliances from surges
Indicate whether the statement is true or false
Computer Science & Information Technology
Every window has a title, width, and height.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
The Shape Builder tool is similar in function to the Unite pathfinder.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology