#include <iostream> using namespace std; template <class T> T volume(T side1, T side2, T side3){ return side1 * side2 * side3; } int main(){ cout << volume(1, 2, 3) << endl; cout << volume(1.2, 2.0, 3.3) << endl; return 0; }