import java.util.*;
import static java.lang.Math.*;
public class RightTriangle
{
public static void main(String[] args)
{
double a, b, c;
System.out.println("Please enter first length"
+ " of side of the triangle", a);
a = console.nextDouble();
System.out.println("The opposite side of the"
+ "triangle is ", a);
System.out.println("Please enter second length"
+ " of side of the triangle", b);
b = console.nextDouble();
System.out.println("The adjacent side of the"
+ "trianlge is ", b);
c =((a*a) + (b*b));
hypotenuse = c*c;
System.out.println("The hypotenuse of the triangle"
+ "is ", hypotenuse);
sine(double a, double c);
cosine(double b, double c);
tangent(double b, double c);
}
public static double getSine(double a, double c)
{
double opp;
double hyp;
opp = a.getNum();
hyp = c.getNum();
sine = opp/hyp;
System.out.println("The sine of the triangle"
+ "is ", sine);
}
public static double getCosine(double b, double c)
{
double adj;
double hyp;
adj = b.getNum();
hyp = c.getNum();
cosine = adj/hyp;
System.out.println("The cosine of the triangle"
+ "is ", cosine);
}
public static double getTangent(double a, double b)
{
double opp;
double adj;
opp = a.getNum();
adj = b.getNum();
tangent = a/b;
System.out.println("The tangent of the triangle"
+ "is ", tangent);
}
}