A simple calculator that performs the four basic arithmetic operations (Addition, Subtraction, Multiplication, and Division) on two numbers.
- Addition: Adds two numbers.
- Subtraction: Subtracts the second number from the first.
- Multiplication: Multiplies two numbers.
- Division: Divides the first number by the second, with error handling for division by zero.
- A working installation of Java (if using the Java version).
- Any IDE like IntelliJ IDEA, Eclipse, or command-line tools like javac and java to run the program.
- Clone the repository:
git clone https://github.com/MrTestBud/Simple_calculator
cd Simple_calculator
- Compile and Run (Java example):
javac simple_calc.java
java Simple_calculator
- Using the Calculator:
The calculator will prompt you to enter two numbers and select an operation (addition, subtraction, multiplication, or division). Based on your input, it will return the result.
Enter first number: 10
Enter second number: 5
Choose operation (+, -, *, /): +
Result: 15
- Java – The programming language used for this project.
This project is licensed under the MIT License – see the MIT file for details.