WAP ( Write a program) to accept the sides of a triangle and display whether it is an an equilateral or isosceles or a scalene triangle in java
Answers
Answered by
0
Answer:nput 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.
Explanation:MARK ME BRAINLY
Similar questions