C++ Program: [Switch] Triangle Type Equilateral, Isosceles,  or Scalene

By: Prof. Dr. Fazal Rehman | Last updated: July 25, 2024

Write a C++ program to check Triangle Type is Equilateral, Isosceles,  or Scalene.

Possible Outputs

Output #1

Enter the lengths of the three sides of the triangle: Side 1: 5 Side 2: 5 Side 3: 5 The triangle is Equilateral.

Output #2

Enter the lengths of the three sides of the triangle: Side 1: 5 Side 2: 5 Side 3: 3 The triangle is Isosceles.

Output #3

Enter the lengths of the three sides of the triangle: Side 1: 4 Side 2: 5 Side 3: 6 The triangle is Scalene.
All Copyrights Reserved 2025 Reserved by T4Tutorials