The following code should output the odd integers from 19 to 1:

```
for (int i = 19; i >= 1; i += 2)
{
Console.WriteLine(i);
}
```


The increment i += 2 should be a decrement i -= 2.

Computer Science & Information Technology

You might also like to view...

__________ inheritance solves the problem of duplicate subobjects.

a. protected b. virtual c. const d. static

Computer Science & Information Technology

If you have a new derived class, will C++ automatically initialize the class members to “zero” values? Explain

What will be an ideal response?

Computer Science & Information Technology

What is the value of i after the following statements?

``` i = 2; i++; ``` a) 0 b) 2 c) 3 d) 4

Computer Science & Information Technology

Match the following Spelling dialog box buttons to their meanings:

I. AutoCorrect II. Change III. Add IV. Change All V. Ignore All VI. Ignore A. Changes the identified word to the word highlighted B. Discontinues flagging any instance of the word anywhere in the table C. Changes every instance of the word in the table to the word highlighted D. Ignores this one occurrence, but continues to flag other instances E. Correct the word automatically if misspelled in the future F Adds the word the custom dictionary that can be edited

Computer Science & Information Technology