Write a function template pairSum that takes two values of possibly different types and returns their sum:
pairSum
template<typename A, typename B> auto pairSum(A a, B b)
The program already reads two numbers (they may be of different types) and calls pairSum. You only need to implement the template function.
Example Input:
5 7
Output:
12
Input:
3 2.5
5.5
10.5 4
14.5
Test Cases
Test Results
Input
Expected Output