Determine the type of triangle (acute, obtuse, or right-angled) based on its side lengths.
Three natural numbers are given – the sides of a triangle.
Output one of the following words: right for a right-angled triangle, acute for an acute triangle, obtuse for an obtuse triangle, or impossible if the inputs don’t form a triangle.
Input #1
3 4 5
Output #1
right
Sign in to submit your solution and save your progress.