11th Jan 2023, 5:33 PM
Vishesh Kumar
2 Réponses
+ 2
if (a+b+c==180) { if ( (a==90 || b==90 || c==90) && (a==b || b==c || a==c) ) System.out.println("ISOSCELES RIGHT∆"); else if( (a==90 || b==90 || c==90) && (a!=b && b!=c && c!=a) ) System.out.println("Right ∆"); }
11th Jan 2023, 5:50 PM
SoloProg
SoloProg - avatar
+ 3
Vishesh Kumar That is why we have else if ()
11th Jan 2023, 5:59 PM
A͢J
A͢J - avatar