Write a program in java to input three sides of a triangle and check whether it is a scalene, isosceles or equilateral triangle
Answers
Answered by
13
Answer:
input 3 sides of triangle...
if(a==b==c)
system.out.println(equilateral);
else if(a==b||b==c||c==a)
system.out.println(isosceles);
else if(a!=b!=c)
system.out.println(scalene);
Similar questions