From bd2ea55fd75ec316292e00ca2e6c8bc895457571 Mon Sep 17 00:00:00 2001 From: Enrico Date: Mon, 30 Oct 2023 18:31:17 +0100 Subject: [PATCH] feat: add calculator --- src/calculator.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/calculator.py diff --git a/src/calculator.py b/src/calculator.py new file mode 100644 index 0000000..0dc6412 --- /dev/null +++ b/src/calculator.py @@ -0,0 +1,6 @@ +a=int(input("Input first number: ")) +b=int(input("Input second number: ")) +print("Sum: "+str(a+b)) +print("Difference:"+str(a-b)) +print("Product: "+str(a*b)) +print("Division: "+str(a/b))