From 6b0a9212947996fa6fe2664b4a27378d9c3b85cc Mon Sep 17 00:00:00 2001 From: zhy <1186391461@qq.com> Date: Thu, 6 Aug 2020 22:39:48 +0800 Subject: [PATCH] d.java --- d.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 d.java 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); } +}