Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

8/2/22, 10:06 AM Untitled43

HARSH THAKUR (20ME028) TE MECH A-


BATCH B
print("Enter 1st Number")
num1 = int(input())
print('Enter 2nd Number')
num2 = int(input())
print('so What you Want?'+'+,-,/,%,*')
num3 =input()

if num1 ==45 and num2==3 and num3=='*':


print("555")
elif num1 == 56 and num2 == 9 and num3 == '+':
print("77")
elif num1 == 56 and num2 == 6 and num3 == '/':
print("4")
elif num3=='*' :
num4=num1*num2
print(num4)
elif num3 == '+':
plus=num2+num1
print(plus)
elif num3 == '/':
Dev=num2/num1
print(Dev)
elif num3 == '-':
Dev=num2-num1
print(Dev)
elif num3 == '%':
percent=num2%num1
print(percent)
else:
print("Error! Please check your input")

localhost:8888/nbconvert/html/Untitled43.ipynb?download=false 1/1

You might also like