while( !in.fail() )
{
if r1 && r2 && r3 !== 0;
{
R = (1 / ((1/r1)+(1/r2)+(1/r2)));
out << R << endl;
}
else if r1 || r2 || r3 == 0;
{
out << "--error--" << endl;
}
}
in.close(); //close the input file since were done with it.
out.close(); //close the output file since were done with it.
}