Question: Write a program that takes in two numbers from the user and an arithmetic operator (+,-, *, /, and %). The program should perform
Write a program that takes in two numbers from the user and an arithmetic operator (+,-, *, /, and %). The program should perform that operation on the two numbers entered by the user. Your program should take advantage of a switch that uses the arithmetic operator as the value for each case. Sample Output What is the first number? 9. What is the second number? 5. What is the operation? + 9+5 14 =
Step by Step Solution
There are 3 Steps involved in it
The image shows a programming exercise prompt that reads Based on this prompt here is a simple examp... View full answer
Get step-by-step solutions from verified subject matter experts
