Question: Question 4 C++ program 3. Write a function that takes two numbers as arguments and returns either the minimum or the maximum based on a
Question 4 C++ program

3. Write a function that takes two numbers as arguments and returns either the minimum or the maximum based on a third argument that is either "max" or "min". Use the function in a program. 4. Write a function that takes two numbers and an arithmetic operator as arguments and returns the result of the operation on the two numbers. Use the function in a program. 5. Write a function that uses addition to perform multiplication on the two numbers given as arguments. Use the function in a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
