Write a Java statement or a set of Java statements to accomplish the following tasks:

Sum the odd integers between 1 and 99, using a for statement. Assume that the integer variables sum and count have been declared. Sum the odd integers between 1 and 99, using a for statement. Assume that the integer variables sum and count have been declared.

```
sum = 0;
for (count = 1; count <= 99; count += 2) {
sum += count;
}
```

Computer Science & Information Technology

You might also like to view...

When testing a laptop power connector, how close should the voltage measured be to the accepted voltage of the laptop?

A. +/- 10% B. +/- 5% C. +/- 1% D. The voltage should be exactly the same

Computer Science & Information Technology

A selected graphic, as shown in the accompanying figure, appears surrounded by a(n) _________________________, which has small squares and circles around its edges.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology