@@ -0,0 +1,502 @@
+package java_problems.beginner;%0A%0Aimport java.util.Scanner;%0A%0Apublic class ValidTriangles %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09%0A%09%09Scanner sc = new Scanner(System.in);%0A%09%09int numCases = Integer.parseInt(sc.nextLine());%0A%09%09for (int i = 0; i %3C numCases; i++) %7B%0A%09%09%09int A = sc.nextInt();%0A%09%09%09int B = sc.nextInt();%0A%09%09%09int C = sc.nextInt();%0A%09%09%09%0A%09%09%09if ((A + B + C == 180) && A != 0 && B != 0 && C != 0) %7B%0A%09%09%09%09System.out.println(%22YES%22);%0A%09%09%09%7D else %7B%0A%09%09%09%09System.out.println(%22NO%22);%0A%09%09%09%7D%0A%09%09%7D%0A%09%09sc.close();%0A%09%7D%0A%7D

Add ValidTriangles