You will write the area and radius formulas of a triangle and test Euler's inequality.
The idea. Heron's formula gives the area from the sides. Then , and . Euler's formula says , which is never negative.
Your tasks.
heron(a, b, c). Return the area.radii(a, b, c). Return the three numbers (r, R, ra).euler_oi(a, b, c). Return .Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…