Write a for loop to print the odd numbers from 1 to 99 (inclusive).

What will be an ideal response?


```
for (int value = 1; value <= 99; value +=2)
System.out.println(value);
```

Computer Science & Information Technology

You might also like to view...

____ contain the animation's content and represent a particular instant in time.

A. Scenes B. Tweens C. Symbols D. Frames

Computer Science & Information Technology

Spelling errors in Word are denoted by a green underline

Indicate whether the statement is true or false

Computer Science & Information Technology

Format Painter is located in the:

A) Editing group on the HOME tab. B) Editing group on the DESIGN tab. C) Clipboard group on the HOME tab. D) Clipboard group on the DESIGN tab.

Computer Science & Information Technology

A(n) ____ is one in which the condition is evaluated after the body of the loop.

A. infinite loop B. nested loop C. posttest loop D. pretest loop

Computer Science & Information Technology