From d6974551f68e6e2cd199d1211380ed85b799d332 Mon Sep 17 00:00:00 2001 From: Gobind Anand <67106625+GobindAnand@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:55:13 +0530 Subject: [PATCH] calculator made on python, does addition, subtraction, multiplication and division --- Gobind | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Gobind diff --git a/Gobind b/Gobind new file mode 100644 index 0000000..ed07d49 --- /dev/null +++ b/Gobind @@ -0,0 +1,11 @@ +num1= eval(input('enter first no:--')) +num2= eval(input('enter second no:--')) +operation= (input('enter operation among {+, -, *, /}:---')) +if operation=='+': + print('the sum is:', num1+num2) +elif operation=='-': + print('the difference is:', num1-num2) +elif operation=='*': + print('the product is:', num1*num2) +elif operation=='/': + print('the quotient is:', num1/num2)