This is a simple calculator program written in Java.
It can add, subtract, multiply, and divide two numbers.
The user can perform calculations multiple times until they choose to exit.
- Addition of two numbers
- Subtraction of two numbers
- Multiplication of two numbers
- Division of two numbers
- Continuous calculations (loop until user exits)
-
Clone this repository:
git clone https://github.com/<your-username>/calculator.git
-
Open the folder in your editor (like VS Code).
-
Compile the program: javac Calculator.java
-
Run the program:
java Calculator 📸 Sample Output Enter first number: 10 Enter second number: 5 Choose operation (+, -, *, /): * Result: 50
Do you want to continue? (y/n): y