Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
287 B
0
Indexable
Never
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
float v(float a, float b, float h) {
	float v;
	v = a * b * h / 3;
	return v;
}
		
int main()
{
	float a, b, h;
	ifstream in("input.txt");
	in >> a;
	in >> b;
	in >> h;
	cout << v(a, b, h);
}