Question: code in C++ Simple calculator 1. Input two numbers and a character from user in the given format. Store them in some variable say num1,
Simple calculator 1. Input two numbers and a character from user in the given format. Store them in some variable say num1, op and num2. 2. USE Switch on the value of op i.e. switch(op). 3. There are four possible values of op i.e.'+','','*' and '/'. 4. For case '+' perform addition and store result in some variable i.e. result = num1 + num2. 5. Similarly, for case '-' perform subtraction and store result in some variable i.e. result = num1 - num2. 6. Repeat the process for multiplication and division. 7. Finally output the value of result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
