Question: python Write a program which reads 3 integer values (you may assume all inputs are positive integer) from the user. The 3 values are interpreted
Write a program which reads 3 integer values (you may assume all inputs are positive integer) from the user. The 3 values are interpreted as representing the lengths of the sides of a triangle. The program prints a message saying whether the triangle is equilateral (all sides equal), isosceles (only 2 sides equal), scalene (all sides unequal), or impossible (can't form a triangle). A triangle can be formed only if the sum of the length of any 2 sides is greater than the length of the 3rd side and the length of all the sides of the triangle are positive. Case 1 3 Input Output scalene 4 5 2 3 equilateral 3 3 1 3 5 isosceles 5 2 1 impossible 2 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
