Untitled
unknown
plain_text
2 years ago
368 B
0
Indexable
Never
#include <iostream> #include <fstream> #include <vector> #include <string> #include <iomanip> using namespace std; float func(float a,float b,float c) { return (float(1.0 / 3.0)) * a * b * c; } int main(){ ifstream in("input.txt"); ofstream out("result.txt"); out << setprecision(2); float a, b, c; in >> a >> b >> c; out << (func(a, b, c)); }