#Simple Calculator Code.
import sys
print("Simple Calculator!\n")
print("Enter the First Number -->> \n")
number1=int(input())
print("Enter the Second Number -->> \n")
number2=int(input())
print("Press + for Addition\n")
print("Press - for Subtraction\n")
print("Press * for Multiplication\n")
print("Press / for Division\n")
operation=input();
if(operation=='+'):
print(number1+number2)
elif(operation=='-'):
print(number1-number2)
elif(operation=='*'):
print(number1*number2)
elif(operation=='/'):
print(number1/number2)
else:
print("Invalid Operation Value Entered")
print("Thanks for Using")
Comments
Post a Comment