develop and algorithm to input the side of triangle and check whether it is quadrilateral, scalene or isosceles triangle
Answers
Answered by
2
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 || side1 == side3 || side2 == side3) , then triangle is isosceles. If it is neither equilateral nor isosceles then it scalene triangle.
mark as brainliest
Answered by
6
Explanation:
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.
proved
Similar questions