package sohcahtoa;
import java.util.Scanner;
public class SOHCAHTOA {
public static void main(String[] args) {
Scanner input = new Scanner (System.in);
double sine,opposite,hypotenuse,cosine,adjacent,tangent;
System.out.println("Please enter in the length of the opposite side of triangle ABC: ");
opposite = input.nextDouble();
System.out.println("Please enter in the length of the hypotenuse of triangle ABC: ");
hypotenuse = input.nextDouble();
System.out.println("Please enter in the length of the adjacent side of triangle ABC: ");
adjacent = input.nextDouble();
sine = opposite/hypotenuse;
cosine = adjacent/hypotenuse;
tangent = opposite/adjacent;
System.out.println("sine|BAC|=" + sine);
System.out.println("cosine|BCA|=" + cosine);
System.out.println("tangent|ABC|=" + tangent);
}
}
yeeeeeeee (I'm growing up so fast *tear tear*)
1 of 4 Announcement







#TeamMystic

