Objective:Code://#includes and blablabla... double radius_circ (double a, double b, double c) { double semi_per; semi_per = (a + b + c) / 2; double result; result = (a * b * c) / (4 * (sqrt (semi_per * ((semi_per - a) * (semi_per - b) * (semi_per - c ))))); return result; } void run_this (void) { double a; double b; double c; while (scanf ("%lf%lf%lf", &a, &b, &c) != EOF) { double z = radius_circ (a, b, c); printf ("%0.6f\n", z); } } //main run_this...
http://www.efunda.com/math/areas/ima...CircleGen1.gifProgram a function that computes the radius of the circle circumscribed in a triangle, given the lengths of the sides. Use the formula r = abc / 4 (sqrt (s (s-a) (s-b) (s-c)), where a, b and c represent the sides and s represents the semi-perimeter.
http://www.efunda.com/math/areas/ima...CircleGen2.gif