Write a code fragment that computes the sum of the integers from 20 to 70, inclusive, then prints the results.
What will be an ideal response?
```
int sum = 0;
for (int count = 20; count <= 70; count++)
sum += count;
System.out.println("The sum is " + sum);
```
Computer Science & Information Technology
You might also like to view...
The Ribbon system is better than the drop-down menus because:
A) it is designed for more proficient users. B) you can be more creative in your writing. C) it runs faster. D) it provides faster access to the commands.
Computer Science & Information Technology
Provide a jQuery statement that shows all children of h2 elements?.
What will be an ideal response?
Computer Science & Information Technology