Consider the following code segment

1.10 Consider the following code segment:
for (odd_sum = 0, j = 1; *** ; j += 2)
odd_sum += j;
In order to sum all the odd numbers between 1 to 100; which of the following statements
cannot replace ***?
A) j <= 99
B) j < 99
C) j <= 100
D) j < 100


Leave a Reply