Write a method called sum100 that returns the sum of the integers from 1 to 100, inclusive.
What will be an ideal response?
```
public int sum100()
{
int sum = 0;
for (int count = 1; count <= 100; count++)
sum += count;
return sum;
}
```
Computer Science & Information Technology
You might also like to view...
Display the Mark Index Entry dialog box to mark main entries and ________
Fill in the blank(s) with correct word
Computer Science & Information Technology
A list of virus definitions is generally in a file with a ________ extension
a. .dat b. .txt c. .vir d. def
Computer Science & Information Technology