Problem Description Link
In this problem if you just find the radius of inner circle of triangle and outer circle of triangle
then you can calculate easily. determine the both radius formula are
outer_circle_radius=(a*b*c)/(4*area_of_triangle);
inner_circle_radius=(area_of_triangle/s);
s=sqrt(s*(s-a)*(s-b)*(s-c));
Algorithm:
This is a simple problem .However you can follow this technique . In this problem if you just find the radius of inner circle of triangle and outer circle of triangle
then you can calculate easily. determine the both radius formula are
outer_circle_radius=(a*b*c)/(4*area_of_triangle);
inner_circle_radius=(area_of_triangle/s);
s=sqrt(s*(s-a)*(s-b)*(s-c));
No comments:
Post a Comment
Write your comment - Share Knowledge and Experience