lab 2

This is lab number two.

In this lab i did a lot of computing of math commands. After you do all the commands and run it, it will ask you to input the 1st number and 2nd number then you plug in any numbers and it will do all the computing.

screen shot:

 

source code:

inputstr=input (“input 1st number”)
inputstr2=input (“input 2nd number”)
x=int (inputstr)
y=int (inputstr2)
sum=x+y
subtract=x-y
multiply=x*y
divide=x/y
remainder=x%y
print (“a:the sum of the 1st number equals:”)
print (sum)
print (“b:the difference of the 1st number and 2nd number equals:”)
print (subtract)
print (“c:the product of the 1st number and 2nd number equals:”)
print (multiply)
print (“d:the quotient of the 1st number and 2nd number equals:”)
print (divide)
print (“e:the remainder of the 1st number and 2nd number equals:”)
print (remainder)