parent
eaee13d937
commit
d92eb219f7
@ -0,0 +1,20 @@
|
||||
import java.util.Scanner;
|
||||
public class sc {
|
||||
|
||||
private static Scanner in;
|
||||
|
||||
public static void main(String[] args) {
|
||||
in = new Scanner(System.in);
|
||||
double x=in.nextDouble();
|
||||
double a = Math.toRadians(x);
|
||||
double sina= Math.sin(a);
|
||||
double cosa= Math.cos(a);
|
||||
System.out.println("sin :"+sina);
|
||||
System.out.println("cos :"+cosa);
|
||||
System.out.println("tan :"+Math.tan(a));
|
||||
double cota=sina/cosa;
|
||||
System.out.println("cot :"+cota);
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue