Untitled
unknown
c_cpp
8 months ago
260 B
1
Indexable
Never
#include <iostream> using namespace std; int price(int a, int n, int m, int s, int b, int &l){ l = (a * (n * m)) + (s * b); return l; } int main() { int a, n, m, s, b, sell; cin >> a >> n >> m >> s >> b; cout << price(a, n, m, s, b, sell); }
Leave a Comment