A command-line powered arithmetic engine built with Python. It processes core mathematical operations with a clean and efficient interface.
- Supports basic operators:
+
,-
,*
,/
- Handles floating-point numbers
- Prevents division by zero
- Rounds results for cleaner output
๐ PythonLab-01-Arithmetic-Engine
โโโ 01.py
1. Clone the repository:
```bash
git clone https://github.com/your-username/PythonLab-01-Arithmetic-Engine.git
cd PythonLab-01-Arithmetic-Engine
Run the program:
python 01.py
mathematica
Enter an operator (+ - * /): *
Enter the 1st number: 12
Enter the 2nd number: 8
96
๐ Example
mathematica
Enter an operator (+ - * /): /
Enter the 1st number: 22
Enter the 2nd number: 7
3
- Add support for power (^) and modulus (%)
- Continuous calculation mode (loop until exit)
- Enhanced decimal precision (round(result, 2))