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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started