Write a do loop that verifies that the user enters an odd value. You may assume that a Scanner object named input has already been created.
What will be an ideal response?
```
int value;
do {
System.out.print("Please enter an odd value: ");
value = input.nextInt();
if(value%2 != 1)
System.out.println("Error (the number was not odd)");
} while(value%2 != 1);
```
You might also like to view...
The ____ spells out the specific activities that the organization will undertake to ensure a given long-term intention.
A. control objective B. control structure C. control process D. control tool
There are four media groups based on continuous or paged; visual, audio or tactile; grid or bitmap; and ____.
A. noncontiguous B. interactive C. integrated D. jpeg
The file type .rtf stands for________
Fill in the blank(s) with correct word
For speakers, amplification is measured in
A) Amps B) Watts C) KHz D) Volts