Phyton: Make a program that is useful to determine if the integers X, Y and Z, provided by the user, are correct measures for the sides of a triangle and if they are, it must tell if it is an Equilateral, Isosceles or Scalene triangle. . NOTE: X, Y and Z are the sides of a triangle if they meet the following conditions: All numbers are greater than zero X + Y > Z X + Z > Y Y + Z > X that is, the sum of two of the measures must be strictly greater than the third. The equilateral triangle has 3 equal sides, the isosceles triangle has 2 equal sides, and the scalene triangle has 3 different sides. Entry Three integers one in each row. Exit Any of the following words: EQUILATERAL, ISOSCELES or SCALENE depending on the type of triangle for the given values. Or, the phrase: IT IS NOT A TRIANGLE if the values entered by the user do not correspond to the sides of a triangle, that is, they do not meet any of the conditions mentioned above. Write only one of the 4 allowed messages using capital letters exactly as described. Program execution example >>>5 >>>5 >>>5 EQUILATERAL
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Phyton:
Make a program that is useful to determine if the integers X, Y and Z, provided by the user, are correct measures for the sides of a triangle and if they are, it must tell if it is an Equilateral, Isosceles or Scalene triangle. .
NOTE: X, Y and Z are the sides of a triangle if they meet the following conditions:
All numbers are greater than zero
X + Y > Z
X + Z > Y
Y + Z > X
that is, the sum of two of the measures must be strictly greater than the third.
The equilateral triangle has 3 equal sides, the isosceles triangle has 2 equal sides, and the scalene triangle has 3 different sides.
Entry
Three integers one in each row.
Exit
Any of the following words: EQUILATERAL, ISOSCELES or SCALENE depending on the type of triangle for the given values.
Or, the phrase: IT IS NOT A TRIANGLE if the values entered by the user do not correspond to the sides of a triangle, that is, they do not meet any of the conditions mentioned above.
Write only one of the 4 allowed messages using capital letters exactly as described.
Program execution example
>>>5
>>>5
>>>5
EQUILATERAL
Step by step
Solved in 3 steps with 2 images