Untitled
unknown
c_cpp
a year ago
257 B
3
Indexable
#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; }
Editor is loading...
Leave a Comment