Merge pull request #1 from venomade/add-run-script

Add repeatable calculator startup script
This commit is contained in:
venomade authored and GitHub committed 2026-10-26 11:34:36 +00:00
commit 016ac885f7
2 files changed
+6 -1

No files matched your search

+2 -1
View File
@@ -6,10 +6,11 @@ It will run on `Python 3` via the `calculator.py` script.
Add, subtract, multiply and divide two numbers; display the result.
## How to Run It
Run: `python3 calculator.py`
Run: `./run.sh`
## Usage
- First enter a number
- Then enter an operator (`+`,`-`,`*` or `/`)
- Lastly enter a second number
- Read the result, printed as `Result: ` followed by the answer.
- When done stop with `Ctrl+c`
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
set -e
cd -- "$(dirname -- "$0")"
python3 calculator.py