Program A will classify triangles based on their side lengths. An equilateral triangle has 3 equal sides, an isosceles triangle has 2 equal sides, and a scalene triangle has no equal sides. Input: Side length 1: Side length 2: Side length 3: Output (one of the following): This is an equilateral triangle! This is an isosceles triangle! This is a scalene triangle! You may assume: The sides will form a valid triangle All inputs will be positive numbers Examples: Side length 1: 10 Side length 2: 10 Side length 3: 10 This is an equilateral triangle! Side length 1: 20 Side length 2: 20 Side length 3: 20.1 This is an isosceles triangle! Side length 1: 2 Side length 2: 3 Side length 3: 4 This is a scalene triangle!
Added by Brooke T.
Step 1
Let's think step by step. Show more…
Show all steps
Close
Your feedback will help us improve your experience
Shelayah Robinson and 51 other Algebra educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a program that accepts the lengths of three sides of a triangle as inputs. The program output should indicate whether or not the triangle is an equilateral triangle. Use The triangle is equilateral. and The triangle is not equilateral. as your final outputs. An example of the program inputs and output is shown below: Enter the first side: 2 Enter the second side: 2 Enter the third side: 2 The triangle is equilateral. The triangle is not equilateral.
Shelayah R.
Supreeta N.
thoughtful micro-steps:
Recommended Textbooks
Elementary and Intermediate Algebra
Algebra and Trigonometry
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD