Question: Write a program that simulates a simple calculator. It reads two integers and a character. If the character is a +, the sum is printed;
Write a program that simulates a simple calculator. It reads two integers and a character. If the character is a ‘+’, the sum is printed; if it is a ‘-’, the difference is printed; if it is a ‘*’, the product is printed; if it is a ‘/’, the quotient is printed; and if it is a ‘%’, the remainder is printed.(Refrance:C++).
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
Program that simulates a simple Calculator using S... View full answer
Get step-by-step solutions from verified subject matter experts
