In mathematics, the triangle inequality states that for any triangle, the sum of the lengths of any two sides must be greater than or equal to the length of the remaining side. Write a function named, prg_question_1 to check whether three sides of given lengths would form a triangle or not. For example, for sides 12.5, 20.8, 15.0 your function must return true whereas for 4.8, 3.0, 12.0 it must return false as 4.8 +3.0 is < 12.
In mathematics, the triangle inequality states that for any triangle, the sum of the lengths of any two sides must be greater than or equal to the length of the remaining side. Write a function named, prg_question_1 to check whether three sides of given lengths would form a triangle or not. For example, for sides 12.5, 20.8, 15.0 your function must return true whereas for 4.8, 3.0, 12.0 it must return false as 4.8 +3.0 is < 12.
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images