A simple Command-Line Interface (CLI) program to perform basic mathematical operations (addition, subtraction, multiplication, division) with the ability to store and display calculation history.
- β Add two numbers
- β Subtract two numbers
- βοΈ Multiply two numbers
- β Divide two numbers (with division by zero handling)
- π View calculation history
- π§Ή Clear calculation history
- π¨βπ» Simple and user-friendly CLI interface
git clone https://github.com/atefi1999/SimpleCalculator.git
cd SimpleCalculator
python simple_calculator.py
π’ Simple Calculator CLI
1οΈβ£ Add
2οΈβ£ Subtract
3οΈβ£ Multiply
4οΈβ£ Divide
5οΈβ£ Show History
6οΈβ£ Clear History
7οΈβ£ Exit
π Choose an option: 1
Enter first number: 12
Enter second number: 8
β
Result: 20.0

- Python 3.x
- Object-Oriented Programming (OOP)
SimpleCalculator/
β
βββ simple_calculator.py # Main program code
βββ README.md # Project documentation