diff --git a/d.java b/d.java new file mode 100644 index 0000000..c9eb4c6 --- /dev/null +++ b/d.java @@ -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); } +}