0

```
public class PolarCoordinates {
public static void main(String[] args){
int r=10;
double x=0,y=0,theta=30;
x=r*Math.cos(theta);
y=r*Math.sin(theta);
System.out.println("The value of x is :" +x);
System.out.println("The value of y is :" +y);
}
}
```

help please?

it gives me wrong answer.

10cos(30) should equal to 8.7, but it gives me 11.7 ans.

10sin(30) should equal to 5, and it gives me 2.63 ans.

whats wrong with my code?