Before I get too far ahead of myself, is this the proper usage of templates?
TIA!Code:#include <iostream>
using namespace std;
template<class T> T pythagorean(const T &a, const T &b){
return a * a + b * b;
}
int main(){
int a = 2, b = 4;
double c = 10, d = 3;
cout << pythagorean(a, b) << endl << pythagorean(c, d) << endl;
return 0;
}