The value of z at loop exit could best be described as
Assume that all variables are of type int and that y and z
are initialized to 0.
```
for (int i = 0; i < 100; ++i) {
cin >> x;
y += x;
if ( x % 2 == 0 )
++z;
}
```
a. the percentage of x multiplied by 2
b. the number of positive integers entered
c. the number of even integers entered
d. the number of odd integers entered
c. the number of even integers entered
Computer Science & Information Technology
You might also like to view...
Users can filter data in a table similar to the way they filter on a form
Indicate whether the statement is true or false
Computer Science & Information Technology
A two-dimensional array of characters can contain
a. strings of the same length b. strings of different lengths c. uninitialized elements d. All of these e. None of these
Computer Science & Information Technology