// ftemp2.cpp Function templates with two parameters
#include <iostream>
using namespace std;

template <class T, class U>
U multsum(T x, T y, U u, int n) {
 return x + y + u*n;
}

int main() {
 cout << multsum<int, double>(4, 3.6, 0.5, 1) << endl;
 return 0;
}
