Cpp Control Flow Statements 13

Question:3
C++ program to take input for 2 numbers and an operator(+,-,*,/). Based on the entered operator calculate and print the result?
Sol:

Question:4.
C++ program for the following:
1. Sum of 2 nos
2. Max of 3 nos
3. Difference between 2 nos
4. Product of 3 nos
Sol: