if(first == second || first == third || second == third)
{
System.out.println("Isosceles Triangle");
}
if(first == second && first == third && second == third)
{
System.out.println("Equilateral Triangle");
}
if(first != second && first != third && second != third)
System.out.println("Scalene Triangle");
我希望它在只有两条边相等的地方显示等腰线,但截至目前,当所有边都相等时,它会同时显示等腰线和等边线。
吃鸡游戏
相关分类