This is a simple Java Calculator program that allows users to perform various arithmetic operations. It supports basic operations as well as some advanced functions like power, square root, and factorial.
- Addition (
+) - Subtraction (
-) - Multiplication (
*) - Division (
/) - Modulus (
%) - Power (
^) - Square Root (
√) - Factorial (
!)
The program handles invalid inputs such as division by zero or negative numbers for square roots and factorials.
A simple Java console-based calculator that allows the user to perform basic operations using a menu system. This program demonstrates the use of loops, switch statements, and if conditions in Java. This loop is simple as using basic conditons of java very much easy and understandable The methods in this calculator is additon,subtraction,multiplication,divison,modulus,power,check Even or Odd .
- Addition, Subtraction, Multiplication, and Division
- Check if a number is Even or Odd
- Prevents division by zero
- Menu repeats until user chooses to exit
SimpleCalculator/ ├── src/ │ ├── Calculator.java │ ├── CalculatorMain.java
├── README.md └── .gitignore ├── MenuCalculator.java