The value of variable y 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 sum of the values entered
b. the number of values entered
c. the largest value entered
d. the average of the values entered
a. the sum of the values entered
Computer Science & Information Technology
You might also like to view...
What are three ways you can implement Excel data on a SharePoint Online site?
What will be an ideal response?
Computer Science & Information Technology
Where does Windows store instructions temporarily after they are read from the hard disk drive?
A) read only memory B) random access memory C) free disk space D) cache
Computer Science & Information Technology