A simple command-line calculator built in Java that performs basic arithmetic operations such as addition, subtraction, multiplication, and division.
- Performs basic arithmetic operations:
- Addition
- Subtraction
- Multiplication
- Division (with error handling for division by zero)
- Ensure you have Java installed on your machine. You can download it from Oracle's official website.
- Clone the repository:
git clone https://github.com/varun-varada/SimpleCalculator.git
cd SimpleCalculator
compile java file -javac A.java -run the Java program
Enter the first number: 10 Enter the second number: 5 Select operation:
- Addition
- Subtraction
- Division
- Multiplication 2 Result: 5