// B2_9 #include using namespace std; template U prod(const U &u, const V &v) { return u*v; } void main() { int x = 2, y = 4; double u = 2.6, v = -3.3; cout << "\n product of " << x << " and " << y << " is " << prod(x,y); cout << "\n product of " << x << " and " << u << " is " << prod(x,u); cout << "\n product of " << u << " and " << x << " is " << prod(u,x); cout << "\n product of " << u << " and " << v << " is " << prod(u,v); cout << "\n\n"; }