Question: java java java java java Write a program that reads two integer values from the user and then asks him/her to choose to either add,

java java java java java

Write a program that reads two integer values from the user and then asks him/her to choose to either add, subtract, multiply, divide, or compute the remainder of their division. Your program should then print (using printf ) the result of the chosen operation. If the user chooses an invalid operation, then your program prints an error message. 3 Sample Runs:

Please enter two integer values: 4 5

Please choose one of these operations (+, -, /, *, %): +

4 + 5 = 9

Please enter two integer values: 4 5

Please choose one of these operations (+, -, /, *, %): -

4 - 5 = -1

Please enter two integer values: 4 5

Please choose one of these operations (+, -, /, *, %): #

Invalid operation!

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!