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

Popular posts from this blog

Quotation marks to wrap an element in HTML

The Basic Structure of a Full-Stack Web App

Unlocking Web Design: A Guide to Mastering CSS Layout Modes