Write a loop that finds the sum of the numbers from 0 to 100. Then display the sum in an alert box.

What will be an ideal response?


```
var sum = 0;
for(i=0; i<=100; i++){
sum = sum + i;
}
alert(sum);
```

Computer Science & Information Technology

You might also like to view...

A(n) ________ file can be viewed but not changed

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which statement creates a random value from the sequence 2, 5, 8, 11 and 14. Suppose randomNumbers is a SecureRandom object.

a. 2 + 5 * randomNumbers.nextInt(3); b. 3 + 2 * randomNumbers.nextInt(5); c. 5 + 3 * randomNumbers.nextInt(2); d. 2 + 3 * randomNumbers.nextInt(5);

Computer Science & Information Technology

____________________ is the amount of time that a task can be delayed without the delay affecting the entire project.

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

Computer Science & Information Technology

What happens when the "Delete" link is used from the Actions menu in Hyper-V Manager?

A. The virtual machine configuration files and virtual hard disks are deleted. B. The virtual machine configuration files are removed, but the virtual disk files are left in place. C. The virtual machine configuration files are retained, but the virtual disk files are deleted. D. The virtual machine is removed from the list in Hyper-V manager, but both the configuration files and disk files remain intact.

Computer Science & Information Technology