Question: PA 5-1 (25) Write a program that asks the user for two integers. Output the sum, difference, product, quotient, and modulus of the two integers.
PA 5-1 (25) Write a program that asks the user for two integers. Output the sum, difference, product, quotient, and modulus of the two integers. Then extend the results to demonstrate you can use augmented assignment operators (+=, *=, -=, /=) to
increment sum by 1 add 6 to difference divide the product by 2 subtract 4 from quotient multiply remainder by 15 
Input an integer followed by a return: 27 Input an integer followed by a return: 6 The sum of 27 and 6 is 33 The difference of 27 and 6 is 21 The product of 27 and 6 is 162 The quotient of 27 and 6 is 4 The remainder when 27 is divide by 6 is 3 increment sum; difference+6; product/2; quotient-4; remainder*15 45 34 27 81
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
