Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
344 B
0
Indexable
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
float volume(float a, float b, float c) 
{
	float v;
	v = a * b * 0.333333333;
	return v;

}
int main()
{
	ifstream in("Source.txt");
	float a, b, c,v;
	in  >> a >> b >> c;
	cout << fixed;

	cout.precision(2);
	v = volume(a, b, c);
	cout << v;
}