Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
526 B
1
Indexable
Never
#include <iostream>
using namespace std;
/*
void awe(int s, int b, int  &ych)
{
	ych = s * b;
}
void asd(int a, int n, int m,int& cena)
{
	cena = n * m * a;
}
*/
int awe(int s, int b, int ych)
{
	return ych = s * b;
}
int  asd(int a, int n, int m, int cena)
{
	return cena = n * m * a;
}
int main()
{
	int cena=1, ych=1;
	int a, n, m, s, b;
	cin >> a >> n >> m >> s >> b;
	cout << asd(a, n, m, cena) << endl << awe(s, b, ych);
	/*
	asd(int a, int n, int m, int& cena);
	cout << cena << ych;
	*/
}
Leave a Comment