For Lab 2 it was kind of like from the first lab , but for this one we used the raw_input and print. what i had to do was pick two numbers so they were 29 as my first interger and 4 as my second interger. After picking my two intergers i had to do the sum, difference,product,and quotient for all to use my results. As i did so 29+4=33, 29-4=25, 29*4=116,  and 29%4 = 1 which 1 is my remainder.

code i used:

num1 = raw_input(‘Please enter the first integer: ‘)
num2 = raw_input(‘Please enter the second integer: ‘)
a = int(num1)
b = int(num2)
print ‘The sum of’,a,’ and ‘,b,’ is: ‘, a + b
print ‘The difference of’,a,’and ‘,b,’is:’, a – b
print ‘The product of’,a,’and’,b,’is:’, a * b
print ‘The quotient of’,a,’and’,b,’is:’,a / b,’remainder:’,a%b

 

print ‘ first interger: 29’

print ‘ second interger: 4 ‘

print ‘ 29+4=33’

print ‘ 29-4=25’

print ‘ 29*4=116’

print ‘ 29/4= 7’

print ‘ 29%4 = 1 ‘

 

>>>29+4

33

>>>29-4

25

>>>29*4

116

>>>29/4

7

>>>29%4

1