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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 30PE
icon
Related questions
Question

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

Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,