This project is a basic command-line calculator implemented in Java. It allows users to perform simple arithmetic operations such as addition, subtraction, multiplication, division, modulo, and exponentiation. The program prompts the user to input two numbers and select an operation, then displays the result. This project is designed to test and demonstrate basic Java concepts.
- Addition (+): Adds two numbers.
- Subtraction (-): Subtracts the second number from the first.
- Multiplication (*): Multiplies two numbers.
- Division (/): Divides the first number by the second.
- Modulo (%): Returns the remainder of the division of the first number by the second.
- Exponentiation (^): Raises the first number to the power of the second.
- Clone the repository or download the source code.
- Compile and run the
Mainclass in your preferred IDE or command-line interface. - Follow the prompts to enter two numbers and select an operation.
- The result will be displayed in the console.
- Java Development Kit (JDK) 8 or higher.
- An IDE (e.g., Eclipse, IntelliJ IDEA) or a command-line interface to compile and run the Java code.
Contributions are welcome! If you have any suggestions or improvements, please open an issue or submit a pull request.