In this problem, you are required to use for loop only to implement a calculator using ++
Fantastic news! We've Found the answer you've been seeking!
Question:
In this problem, you are required to use for loop only to implement a calculator using ++ (increment) and -- (decrement) operators only. The operations that your calculator shall perform are limited, i.e. addition, subtraction, multiplication, division, and remainder. Your program shall ask the user about the two input values and an operator, and then use the switch-case structure to run the required operation (addition, subtraction, multiplication, or division). Your program shall run correctly for positive input values only.
First Input: 10
Second Input: 12
Operation: Addition
Related Book For
Operations and Supply Chain Management
ISBN: 978-0078024023
14th edition
Authors: F. Robert Jacobs, Richard Chase
Posted Date: