Untitled
unknown
plain_text
8 months ago
324 B
1
Indexable
Never
#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); }
Leave a Comment