Computer Science, asked by abhi3srvt, 4 months ago

Write a program to input three sides of a triangle. Check whether it is scalene triangle or not. ​

Answers

Answered by ayesha513
2

Explanation:

1.Input sides of a triangle from user. ...

2.Check if(side1 == side2 && side2 == side3) , then the triangle is equilateral.

3. If it is not an equilateral triangle then it may be isosceles. ...

4.If it is neither equilateral nor isosceles then it scalene triangle.

Answered by dgholap72
1

Logic to check equilateral, scalene or isosceles triangle

Input sides of a triangle from user. ...

Check if(side1 == side2 && side2 == side3) , then the triangle is equilateral.

If it is not an equilateral triangle then it may be isosceles. ...

If it is neither equilateral nor isosceles then it scalene triangle.

PLEASE MARK ME AS BRAINLIEST

Similar questions