import java.util.Scanner;
public class triplets {
public static void main(String[] args) {
int s1,s2,h;
Scanner n= new Scanner(System.in);
System.out.println("enter side 1");
s1=n.nextInt();
System.out.println("enter side 2");
s2=n.nextInt();
System.out.println("enter h");
h=n.nextInt();
if ((s1*s1+s2*s2)==h*h)
System.out.println("yes");
else
System.out.println("no");
}
}
public class triplets {
public static void main(String[] args) {
int s1,s2,h;
Scanner n= new Scanner(System.in);
System.out.println("enter side 1");
s1=n.nextInt();
System.out.println("enter side 2");
s2=n.nextInt();
System.out.println("enter h");
h=n.nextInt();
if ((s1*s1+s2*s2)==h*h)
System.out.println("yes");
else
System.out.println("no");
}
}
No comments:
Post a Comment