ср знач

mail@pastecode.io avatar
unknown
c_cpp
21 days ago
183 B
2
Indexable
Never
#include <iostream>
using namespace std;
float sr(float a, float b, float k)
{
	return (a + b) / k;
}
int main()
{
	float a, b, k=2;
	cin >> a >> b;
	cout << sr(a, b, k);
}
Leave a Comment