Untitled
unknown
c_cpp
8 months ago
328 B
0
Indexable
Never
#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); }
Leave a Comment