You are given real positive numbers a, b, c, which are the lengths of the sides of the triangle. Write a program that allows you to find the radius of the inscribed and circumscribed circles.
var a, b, c, p: real; // set variables of non-integer type
write (‘enter the first side of the triangle’);
write (‘enter the second side of the triangle’);
write (‘enter the third side of the triangle’);
If a <b + c Then
If b <a + c Then
If c <a + b Then
p: = (a + b + c) / 2;
Writeln (‘Inscribed circle radius =’, Sqrt (((p-a) * (p-b) * (p-c)) / p): 2: 2);
Writeln (‘Radius of the circumcircle =’, (a * b * c) / (4 * Sqrt ((p * (p-a) * (p-b) * (p-c)))): 2: 2);
Else Writeln (‘The triangle does not exist’);
One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.