Question: Write a Java program that prompts the user to enter three integers a, b, and c. As output the program is to display the number

Write a Java program that prompts the user to enter three integers a, b, and c. As output the program is to display the number of integers entered by the user that are odd. The output statement must exactly match the sample output statements provided below. Here are four sample program runs:

Enter a: 32

Enter b: 47

Enter c: 59

Two integers were odd.

-------------------------------------------------------

Enter a: 33

Enter b: 103

Enter c: 97

Three integers were odd.

-------------------------------------------------------

Enter a: 50

Enter b: 940

Enter c: 99

One integer was odd.

-------------------------------------------------------

Enter a: 402

Enter b: 1000

Enter c: 2

No integers were odd.

-------------------------------------------------------

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!