Lab 2 Python

 

inputStr = input(“Please enter the first integer: “)
inputInt = int(inputStr)
inputzStr = input(“Please enter second integer: “)
inputzInt = int(inputzStr)

print (“The sum of”, inputInt,”and”, inputzInt, “will be:”, inputInt+inputzInt)
print (“The difference of”, inputInt,”and”, inputzInt,”will be:”, inputInt-inputzInt)
print (“The product of”, inputInt,”and”, inputzInt,”will be:”, inputInt*inputzInt)
print (“The quotient of”, inputInt,”and”, inputzInt,”will be:”, inputInt/inputzInt,”with a remainder of”, inputInt%inputzInt)