Untitled

mail@pastecode.io avatar
unknown
plain_text
5 months ago
457 B
1
Indexable
# calculator
first=int(input("enter the first number:"))
second=int(input("enter the second number:"))
print("if you want to add enter '1'","if you want to subtract enter '2'","if you want to multiply enter '3'","if you want to divide enter '4'")
operat=int(input("enter here:"))
if operat == 1:
    print(first+second)
elif operat == 2:
    print(first-second)
elif operat == 3:
    print(first*second)
elif operat == 4:
    print(first/second)
Leave a Comment