



 
Nancy, You have to find the radius of your circle (which is called the INCIRCLE). That radius is traditionally denoted by r. To do that you need two different ways of computing the area of a triangle. Such formulas can be found in a reference book or online, for example at I would use formula (9) on Wolfram's list (Heron's formula) and set it equal to formula (8), which says that area = rs (for the semiperimeter s = (a+b+c)/2). That gives you a formula for the desired radius r. Then the area of the incircle is pi × r^{2}. Chris Warning: Nancy, You say that
It is not true that any three numbers can be the side lengths of a triangle. Draw a line of length 5 cm and then try to complete a triangle with the other two sides of length 1 cm each. In any triangle the length of each side must be no larger than the sum of the lengths of the other two sides. Your software should check this condition before accepting the user's input. Harley  


Math Central is supported by the University of Regina and The Pacific Institute for the Mathematical Sciences. 