Question: Use C++ Design a function, which calculates a sum, a difference or a product of two integers, depending on the code of the operation specified
Design a function, which calculates a sum, a difference or a product of two integers, depending on the code of the operation specified by the user, and returns a result. The function shall have 3 formal parameters (1^st number, 2^nd number, and an operation code) and return an integer Use the switch-case statement inside the function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
