Write a program to input three sides of a triangle. Check whether it is scalene triangle or not.
Answers
Answered by
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
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
English,
2 months ago
English,
2 months ago
Social Sciences,
4 months ago
Social Sciences,
4 months ago
Math,
11 months ago