Which of the following will sum up all the integers between 1 and 10, inclusive?
a.
```
var sum = 0;
for (var i = 1; i < 11; i ++)
sum = sum + i;
```
b.
```
var sum = 1; var i = 1;
while(i < 11)
sum = sum + i;
```
c.
```
var sum = 1; var i = 1;
while(i != 10)
{
i++;
sum = sum + i;
}
```
d.
```
var sum = 0;
for (var i = 1; i < 10; i++)
sum = sum + i;
```
a.
```
var sum = 0;
for (var i = 1; i < 11; i ++)
sum = sum + i;
```
You might also like to view...
In the accompanying figure, clicking on item 1 will ____.
A. rename the layer B. expand or collapse the layer C. activate the layer D. delete the layer
A crosstab query can be used if you want to calculate statistics and group the results by two sets of data
Indicate whether the statement is true or false
As you work on your video in Adobe Premiere Elements, many new elements that are needed by your video, such as encoded files, are automatically created by Premiere Elements.
Answer the following statement true (T) or false (F)
In which tab of the CUPS Web interface can you add and find new printers?
A. Administration B. Classes C. Documentation/Help D. Jobs