math sin in java

Solutions on MaxInterview for math sin in java by the best coders in the world

showing results for - "math sin in java"
Giovanni
10 Mar 2016
1double pi = Math.PI;
2double ans = Math.sin(pi/2);  //Input is in radians
3ans == 1;
Gael
17 Jan 2020
1double pi = Math.PI;
2double ans = Math.sin(pi/2);  //Input is in radians
3if(ans==1){
4	System.out.println("You Find it");
5}
6else{
7  	System.out.println("You are unlucky today");
8}