Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
329 B
0
Indexable
Never
#include <iostream>
#include <cmath>
#include <math.h>
using namespace std;
void foo(int A, int B, int N, int M, int S, int& cena)
{
	int ych = A * N * M;
	int dom = B * S;
	cena = ych + dom;
}
int main()
{
	int A, B, N, M, S;
	cin >> A >> B >> N >> M >> S;
	int cena;
	foo(A, B, N, M, S, cena);
	cout << cena;
}
Leave a Comment