A simple C++ console calculator.
It can perform addition, subtraction, multiplication, and division, and allows repeated calculations in one run.
- Download or clone this repository.
- Open the
SimpleCalculator.cpp
file in your C++ IDE (e.g., Visual Studio). - Build and run the program.
- Enter two numbers and an operator (+, -, *, /) when prompted.
- Continue calculating until you choose to exit.
Enter two numbers: 8 2 Enter operator (+, -, *, /): * Result: 16 Do you want to continue? (y/Y for yes, n/N for no): y Enter two numbers: 10 0 Enter operator (+, -, *, /): / Error: Division by zero! Do you want to continue? (y/Y for yes, n/N for no): n
- Add more operations (modulus, power)
- Keep a history of calculations