From c232251a269c7dc96db5935d5a4d287e5381dcc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=B8=E9=95=87=E5=98=89?= <28297490@qq.com> Date: Fri, 7 Aug 2020 00:43:09 +0800 Subject: [PATCH] jisuanqi.java --- Main1.java | 35 ----------------------------------- main.java | 35 ----------------------------------- 2 files changed, 70 deletions(-) delete mode 100644 Main1.java delete mode 100644 main.java diff --git a/Main1.java b/Main1.java deleted file mode 100644 index 97891e4..0000000 --- a/Main1.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.company; -import java.util.*; -import java.lang.Math; -public class Main { - - public static void main(String[] args) { - - Scanner function= new Scanner(System.in); - String a=function.nextLine(); - if(a.equals("sin")||a.equals("cos")||a.equals("tan")){ - Scanner radian= new Scanner(System.in); - double b=radian.nextDouble(); - } - else{ - Double.parseDouble(a); - Scanner sc= new Scanner(System.in); - String b=sc.nextLine(); - Scanner sc1= new Scanner(System.in); - double c=sc1.nextDouble(); - if(b.equals("^")) - double d=zhishu.zhishu(a,c); - if(b.equals("log")) - double d=fengsj1.duishu(a,c); - if(b.equals("+")) - double d=Jiajianchengchu.jia(a,c); - if(b.equals("-")) - double d=Jiajianchengchu.jian(a,c); - if(b.equals("*")) - double d=Jiajianchengchu.cheng(a,c); - if(b.equals("/")) - double d=Jiajianchengchu.chu(a,c); - System.out.println(d); - } - } -} \ No newline at end of file diff --git a/main.java b/main.java deleted file mode 100644 index 89a33b9..0000000 --- a/main.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.company; -import java.util.*; -import java.math; -public class Main { - - public static void main(String[] args) { - - Scanner function= new Scanner(System.in); - String a=function.nextLine(); - if(a.equals("sin")||a.equals("cos")||a.equals("tan")){ - Scanner radian= new Scanner(System.in); - double b=radian.nextDouble(); - } - else{ - Double.parseDouble(a); - Scanner sc= new Scanner(System.in); - String b=sc.nextLine(); - Scanner sc1= new Scanner(System.in); - double c=sc1.nextDouble(); - if(b.equals("^")) - double d=zhishu.zhishu(a,c); - if(b.equals("log")) - double d=fengsj1.duishu(a,c); - if(b.equals("+")) - double d=Jiajianchengchu.jia(a,c); - if(b.equals("-")) - double d=Jiajianchengchu.jian(a,c); - if(b.equals("*")) - double d=Jiajianchengchu.cheng(a,c); - if(b.equals("/")) - double d=Jiajianchengchu.chu(a,c); - System.out.println(d); - } - } -} \ No newline at end of file