Question: Write a java program to prompt the user to enter two integer numbers A and B. If the two integers are equal print out a

Write a java program to prompt the user to enter two integer numbers A and B. If the two integers are equal print out a message stating they are equal. If they are not equal set A to be the minimum of the two integers, and set B to be the maximum of the two integers. Then compute the inclusive sum and product between the two integers and output the answer like this:
 Write a java program to prompt the user to enter two

Enter two integer numbers 5 2 The inclusive sum between 2 and 5 is 14 The inclusive product between 2 and 5 is 120 Enter two integer numbers: 7 8 The inclusive sum between 7 and 8 is 15 The inclusive product between 7 and 8 is 56 Enter two integer numbers: 6 6 The integers are equal

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!