Computer Science, asked by amruthashandraya70, 7 months ago

write a program to find whether the triangle is equalateral ,isocelus or scalene depending on the sides entered​

Answers

Answered by answerqueen21
1

Answer:

  • input sides of a triangle from user. Store it in some variables say side1, side2 and side3.
  • Check if(side1 == side2 && side2 == side3), then the triangle is equilateral.
  • If it is not an equilateral triangle then it may be isosceles. Check if(side1 == side2 || side1 == side3 || side2 == side3), then triangle is isosceles.
  • If it is neither equilateral nor isosceles then it scalene triangle.

Explanation:

hit like ❤

follow me

Similar questions