...

/

Example 13: Determine the Type of a Triangle

Example 13: Determine the Type of a Triangle

Learn how to identify the type of a given triangle.

We'll cover the following...

Problem

Write a program that takes three sides of a triangle as input, and checks whether the triangle is isosceles, equilateral, scalene, or right-angled.

The output should be printed on the console in the following manner:

  • Scalene triangle
  • Isosceles triangle
...