#include <iostream>
using namespace std;
template<typename T>
T get_biggest(T num1, T num2, T num3) {
T biggest = num1;
if (num2 > biggest) {
biggest = num2;
}
if (num3 > biggest) {
biggest = num3;
}
return biggest;
}
int main() {
cout << "biggest of 4, 7, & 2 is " << get_biggest(4, 7, 2) << endl;
cout << "biggest of 3.2, 1.8, & 4.7 is " << get_biggest(3.2, 1.8, 4.7) << endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: