How many times is the loop body of the for statement executed?

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. once
b. 99 times
c. 100 times
d. until a number larger than 100 is entered

c. 100 times

Computer Science & Information Technology

You might also like to view...

Case-Based Critical Thinking QuestionsCase 9-1Ethan is editing his project paper using Microsoft Word 2013. Please answer the questions below. Ethan wants to change the font in the entire document. To select all of the text in the document, on the _____ tab, he clicks Editing, Select, then Select All.

A. HOME B. INSERT C. PAGE LAYOUT D. VIEW

Computer Science & Information Technology

What is HIPAA?

What will be an ideal response?

Computer Science & Information Technology