gaokao 2018 Q8

gaokao · China · national-II-arts 5 marks Not Maths
To calculate $S = 1 - \frac { 1 } { 2 } + \frac { 1 } { 3 } - \frac { 1 } { 4 } + \cdots + \frac { 1 } { 99 } - \frac { 1 } { 100 }$, a flowchart was designed. What should be filled in the blank box?
A. $i = i + 1$
B. $i = i + 2$
C. $i = i + 3$
D. $i = i + 4$
To calculate $S = 1 - \frac { 1 } { 2 } + \frac { 1 } { 3 } - \frac { 1 } { 4 } + \cdots + \frac { 1 } { 99 } - \frac { 1 } { 100 }$, a flowchart was designed. What should be filled in the blank box?\\
A. $i = i + 1$\\
B. $i = i + 2$\\
C. $i = i + 3$\\
D. $i = i + 4$