faulty calculator using python

technical talkiess
0

 #faulty calculator ...... * / +


print("Enter First Number")
first_nu = int(input())
print("Enter Second Number")
second_nu = int(input())
print("Enter Operator")
operator = input()

if(operator == '+'):
        print(first_nu - second_nu)
elif(operator == '/'):
        print(first_nu + second_nu)
elif(operator == '*'):
        print(first_nu / second_nu)
else:
        print(first_nu - second_nu)
Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)