diff --git a/calculator.py b/calculator.py new file mode 100644 index 0000000..e982054 --- /dev/null +++ b/calculator.py @@ -0,0 +1,18 @@ +# Program make a simple calculator + +# This function adds two numbers +def add(x, y): + return x + y + +# This function subtracts two numbers +def subtract(a, b): + return a - b + +def mul(a,b): + return a*b + +def div(a,b): + return a/b + + +