diff --git a/Calculator.py b/Calculator.py new file mode 100644 index 00000000..9d6c696b --- /dev/null +++ b/Calculator.py @@ -0,0 +1,21 @@ +print("Hello Welcome to Calc by Karan Dhingra") + +a = input("Enter the First Number for operation : ") +b = input("Enter the Second number for operation : ") + +ch = input("Enter the operator (+, -, *, /, **, %) : ") + +if ch == '+': + print("Required Solution is : ",float(a) + float(b)) +elif ch == '-': + print("Required Solution is : ",float(a) - float(b)) +elif ch == '*': + print("Required Solution is : ",float(a) * float(b)) +elif ch == '/': + print("Required Solution is : ",float(a) / float(b)) +elif ch == '%': + print("Required Solution is : ",float(a) % float(b)) +elif ch == '**': + print("Required Solution is : ",float(a) ** float(b)) + +print("ThankYou For Using Karan's Calc")