class Main { public static void main(String[] args) { int a=10; int b=20; int c=15; if((a*a)+(b*b)=(c*c) || (b*b)+(c*c)=(a*a) || (c*c)+(a*a)=(b*b)) { System.out.print("Triangle:Yes"); } else { System.out.println("Triangle:No"); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)