From 756bbf4d09101e55a10d5470e521c03d0a849d09 Mon Sep 17 00:00:00 2001 From: Billy O'Connell Date: Tue, 25 Jul 2023 14:58:08 +0100 Subject: [PATCH] add mod operator --- calculator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/calculator.py b/calculator.py index 09469b6..e644741 100644 --- a/calculator.py +++ b/calculator.py @@ -12,5 +12,7 @@ print(int(intA) - int(intB)) elif operation == '/': print(int(intA) / int(intB)) +elif operation == '%': + print(int(intA) % int(intB)) else: print ('Invalid Operation Specified') \ No newline at end of file