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...
Keywords public and private are called ________.
a) member-access modifiers b) privacy modifiers c) security modifiers d) class modifiers e) type modifiers
Computer Science & Information Technology
The two most commonly used academic style guides are created by the MLA and the APA
Indicate whether the statement is true or false
Computer Science & Information Technology
The array_unshift() function adds ____ element(s) to the beginning of the array.
A. one or more B. two or more C. no new D. only one
Computer Science & Information Technology
Hyper-V considers one read I/O operation to be how much data?
A. 4 KB B. 8 KB C. 16 KB D. 32 KB
Computer Science & Information Technology