Computer Science, asked by learningstudent52, 5 months ago

Write a program to take three sides of a triangle as input and check if it is an equilateral triangle or isoceles triangle or scalene triangle.​

Answers

Answered by CHATURVEDIAYUSHI789
0

Answer:

Logic to check equilateral, scalene or isosceles triangle

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.

Similar questions