Need help
Hello All,
I wrote this code but the result is always 0.0.
Would someone please tell me what did I do wrong?
public static void main(String[] args) {
System.out.println(area(10,5,90));
}
public static double area(double a, double b, double cd){
double cr;
cr = Math.PI*cd/180;
double ar;
ar= 1/2*a*b*Math.sin(cr);
return ar;
}
}

