Lab #2

This lab involved using the simple math parameters to add, multiply, subtract and divide two integers that are prompted to be inserted by the user.

aa = raw_input(‘Enter first number: ‘) x = int(aa) bb = raw_input(‘Enter second number: ‘) y = int(bb) print “””The sum of “,x,” and “,y,” is “, x+y”””

aa = raw_input(‘Enter first number: ‘) a = int(aa) bb = raw_input(‘Enter second number: ‘) b = int(bb) print “””The difference of “,x,” and “,y,” is “, x-y”””

aa = raw_input(‘Enter first number: ‘) a = int(aa) bb = raw_input(‘Enter second number: ‘) b = int(bb) print “””The product of ‘,x,’ and ‘,y,’ is ‘,x*y “””

aa = raw_input(‘Enter first number: ‘) a = int(aa) bb = raw_input(‘Enter second number: ‘) b = int(bb) print “””The quotient of ‘,x,’ and ‘,y,’ is ‘, x/y”””