Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
257 B
0
Indexable
Never
#include <iostream>
using namespace std;

void price(int a, int n, int m, int s, int b, int &l){
	l = (a * (n * m)) + (s * b);
}

int main() {
	int a, n, m, s, b, sell;
	cin >> a >> n >> m >> s >> b;
	price(a, n, m, s, b, sell);
	cout << sell;
}
Leave a Comment