Untitled
unknown
plain_text
a year ago
324 B
3
Indexable
#include <iostream> using namespace std; int cost(int A, int N, int M, int S, int B) { int costdom; costdom = S * B; int costzemlya; costzemlya = N * M * A; int itog; itog = costdom + costzemlya; return itog; } int main() { int A, N, M, S, B; cin >> A>> N>>M>>S>>B; cout << cost(A, N, M, S, B); }
Editor is loading...
Leave a Comment