My very basic calculator
It can perform arithmetic operations on two numbers at a time...
x = int(input("enter 1st number: "))
y = input("What you want to do? ")
z = int(input("enter 2nd number: "))
if y=="+":
print(x + z)
elif y=="-":
print(x - z)
elif y=="*":
print(x * z)
elif y=="/":
print(x / z)
Comments
Post a Comment
Write something to CodeWithAbdur!