Which of the following is equivalent to this code segment?
```
int total = 0;
for (int i = 0; i <= 20; i += 2)
total += i;
```
a. int total = 0;
for (int i = 20; i < 0; i += 1)
total += i;
b. int total = 0;
for (int i = 0; i <= 20; total += i, i += 2);
c. int total = 0;
for (int i = 0, i <= 20, total += i; i += 2);
d. int total = 0;
for (int i = 2; i < 20; total += i, i += 2);
b. int total = 0;
for (int i = 0; i <= 20; total += i, i += 2);
Computer Science & Information Technology
You might also like to view...
An AutoExec macro can be bypassed by holding down the Ctrl key when opening the database
Indicate whether the statement is true or false
Computer Science & Information Technology
A(n) ________ is a key that is switched from one setting to another; Caps Lock is an example
Fill in the blank(s) with correct word
Computer Science & Information Technology