Question: Write a function called find_triangle_type() that prompts the user for the lengths of the 3 sides (integers only) of a triangle (smallest to largest) and


Write a function called find_triangle_type() that prompts the user for the lengths of the 3 sides (integers only) of a triangle (smallest to largest) and prints the type of triangle. The four possible types of triangles are 1. Does not form triangle 2. Equilateral -- all sides are equal length 3. Isosceles -- only two sides are of equal length 4. Scalene -- all three sides are different lengths Three sides do not form a triangle if the sum of the two smallest sides are less than or equal to the longest side. You can assume the user will enter positive integers in order from smallest to largest. Just provide the function, no main is needed. Use Repl.it and enter the REPL weblink in the text entry. Sample run 1 Enter the length of the smallest side: 3 Enter the length of the second smallest side: 4 Enter the length of the third smallest side: 8 Does not form a triangle Sample run 2 Enter the length of the smallest side: 45 Enter the length of the second smallest side: 45 Enter the length of the third smallest side: 67 Triangle is isosceles Sample run 3 Enter the length of the smallest side: 45 Enter the length of the second smallest side: 67 Enter the length of the third smallest side: 67 Triangle is isosceles Sample run 4 Enter the length of the smallest side: 5 Enter the length of the second smallest side: 5 Enter the length of the third smallest side: 5 Triangle is equilateral Sample run 5 Enter the length of the smallest side: 3 Enter the length of the second smallest side: 4 Enter the length of the third smallest side: 5 Triangle is scalene
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
