Question: Write a Java program which has the user enter three positive integers, a , b , and c . Assume the user enters three distinct

Write a Java program which has the user enter three positive integers, a, b, and c. Assume the user enters three distinct positive integers. The program then determines if one of those three integers is a multiple of the other two. The program then outputs the results, as shown in the following sample runs: Enter a: 20 Enter b: 60 Enter c: 30

b is a multiple of the other two.

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

Enter a: 15 Enter b: 6 Enter c: 9

NONE of them is a multiple of the other two.

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

Enter a: 100 Enter b: 50 Enter c: 25

a is a multiple of the other two.

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

Enter a: 10 Enter b: 8 Enter c: 40

c is a multiple of the other two.

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

public static void main(String [] args) {

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!