Back to General discussions forum
What is wrong in this code
double d1 = in.nextDouble();
double tanA = in.nextDouble();
tanA = Math.tan(tanA);
double tanB = in.nextDouble();
tanB = Math.tan(tanB);
System.out.print(Math.round((tanA*d1*tanB)/(tanB-tanA))+" ");?
I think you must change it to radian first before calculating tan.