Question: Write a Java program that lets the user to enter 3 numbers, each in between 1-9. Then, form the expressions using the operators (addition, subtraction,

 Write a Java program that lets the user to enter 3

Write a Java program that lets the user to enter 3 numbers, each in between 1-9. Then, form the expressions using the operators (addition, subtraction, multiplication, and division). Given the order of the number is fix and the result of the expression must equal to 18. You can only use array to solve the problem. Contoh output: Sample output: Enter 3 numbers [1-9] : 6 7 8 No Solution : 4 7 2 Enter 3 numbers [1-9] 4 + 7 * 2 = 18 : 9 7 5 Enter 3 numbers [1-9] 9 * (7-5) = 18 Enter 3 numbers [1-9] : 2 1 6 (2 + 1) * 6 = 18 : 4 29 Enter 3 numbers [1-9] (4 2) * 9 = 18 4 / 2 9 = 18 4 / 02 / 9) = 18

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!