Untitled

 avatar
unknown
plain_text
a year ago
302 B
5
Indexable
#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;
}
Editor is loading...
Leave a Comment