Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
302 B
1
Indexable
Never
#include <iostream>
#include <string.h>
using namespace std;
int cadastr(int& a, int& n, int &m, int &s, int &b) {
    int res = (a * n * m) + (s * b);
    return res;
}
int main(){
    int a, n, m, s, b;
    cin >> a >> n >> m >> s >> b;
    cout << cadastr(a, n, m, s, b);
    return 0;
}
Leave a Comment