Untitled
unknown
c_cpp
2 years ago
328 B
8
Indexable
#include <iostream>
#include <string>
#include <ctime>
using namespace std;
void total(int a, int n, int m, int s, int b, int ans) {
int d = a * n * m;
int c = s * b;
ans = d + c;
cout << ans;
}
int main()
{
int a, b,n,m,s;
int ans;
ans = 0;
cin >> a >> b >> n >> m >>s;
total(a, n, m, s, b, ans);
}Editor is loading...
Leave a Comment