A simple Python program to perform basic math operations directly in the terminal.
- โ Addition
- โ Subtraction
- โ๏ธ Multiplication
- โ Division (with zero division handling)
- Python 3
- Python standard libraries (
os)
calculator.py # Main program file
-
Make sure you have Python 3 installed.
-
Clone this repository:
git clone https://github.com/YOUR-USERNAME/integer-calculator.git
-
Enter the project folder:
cd integer-calculator -
Run the program:
python calculator.py
Integer Calculator
Enter a value: 10
1 - Add 10 with X
2 - Subtract 10 by X
3 - Divide 10 by X
4 - Multiply 10 with X
Choose the desired operation: 1
Enter a value to add with 10: 5
Result: 15
- Add a graphical user interface (Tkinter or PyQt)
- Allow decimal numbers (float operations)
- Create automated tests
Made with โค๏ธ by Victor Gabriel