ibrahimjoseph_lab3

#Joseph Ibrahim
#date:3/7/13
#lab3
#session: 9304
x = int(input(‘enter the first number: ‘))
y = int(input(‘enter the second number: ‘))
print (‘enter 1 to add the numbers. ‘)
print (‘enter 2 to subtract the numbers. ‘)
print (‘enter 3 to multiply the numbers. ‘)
print (‘enter 4 to divide the numbers. ‘)
print (‘enter 5 to remainder of numbers. ‘)
print (‘enter 6 to compare numbers. ‘)
print (‘enter 7 to exit. ‘)
z = int(input(‘please enter for your selection: ‘))
if z == 1:
result = x+y
print(‘the sum of’, x, ‘and’, y, ‘is’, result)
elif z == 2:
result = x-y
print(‘the difference of’, x, ‘and’, y, ‘is’, result)
elif z == 3:
result = x * y
print (‘the product of’, x, ‘and’, y, ‘is’, result)
elif z== 4:
result = x/y
print (‘the quotient of’, x, ‘and’, y, ‘is’, result)
elif z == 5:
result = x%y
print (‘the remainder of’, x, ‘and’, y, ‘is’, result)
elif z == 6:
result = xy, x==y, x!=y
print (‘the inequailty of’, x, ‘and’, y, ‘is’, result)
elif z == 7:
result = exit
print (‘script closed’, exit)