Untitled
unknown
plain_text
3 years ago
344 B
6
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;
}Editor is loading...