va rog urgent exercițiul
![Va Rog Urgent Exercițiul class=](https://ro-static.z-dn.net/files/d1a/8621c59ab27c1a3d53ad986467bb09b7.jpg)
Răspuns:
#include <iostream>
using namespace std;
int main(){
int t1, t2, n , m , z;
cin >> t1 >> t2 >> n >> m >> z;
int a = t1 * n + t2 * m;
int t = a * z;
cout << t;
return 0;
}