From d6d6546a534791b7ea887dea508588797f1753c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ossama=20Mehmood=20=EC=83=98?= Date: Tue, 7 Nov 2023 20:23:30 +0500 Subject: [PATCH] Delete calculator.java --- calculator.java | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 calculator.java diff --git a/calculator.java b/calculator.java deleted file mode 100644 index d67b10b4a32..00000000000 --- a/calculator.java +++ /dev/null @@ -1,34 +0,0 @@ -import java.util.*; - -public class calculator{ - public static void main(String args[]){ - Scanner sc = new Scanner(System.in); - - System.out.println("Enter a : "); - int a = sc.nextInt(); - System.out.println("Enter b : "); - int b = sc.nextInt(); - System.out.println("Enter operator : "); - - char operator = sc.next().charAt(0); - - - switch(operator){ - - case '+' : System.out.println(a+b); - break; - case '-' : System.out.println(a-b); - break; - case '/' : System.out.println(a/b); - break; - case '*' : System.out.println(a*b); - break; - case '%' : System.out.println(a%b); - break; - default : System.out.println("wrong operator"); - - } - sc.close(); - - } -}