master
zhy 4 years ago
parent 34077b7d1d
commit 6b0a921294

@ -0,0 +1,10 @@
import java.util.Scanner;
public class c {
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
double a = sc.nextDouble(); //输入rad值
double b = Math.sin(a);//计算sin
double c = Math.cos(a);//计算cos
double d = Math.tan(a);//计算cos
System.out.println("sin值为"+b+" "+"sin值为"+c+" "+"tan值为"+d); }
}
Loading…
Cancel
Save