Sep-10-2020, 08:33 AM
x=int(input('Input first number.\n')) y=int(input('Input second number.\n')) a=int(input('What calculation you want to perform?\n 1 +, 2 -,3 *,4 / \n')) if a==1:print('The answer is ',x+y) if a==2:print('The answer is ',x-y) if a==3:print('The answer is ',x*y) if a==4:print('The answer is ',x/y)