1. Write a program that uses function template to mimics a calculator. The program should take as input two values (of type int or double) and the operation to be performed. Some sample outputs are shown below:
2.5 * 4 = 10
4 + 3.7= 7.7
5.5 – 2.3 = 3.2
6/2 = 3
Comments
Leave a comment