Write a program that prompts the user for two integers and then prints The sum

Question:

Write a program that prompts the user for two integers and then prints

• The sum
• The difference
• The product
• The average
• The distance (absolute value of the difference)
• The maximum (the larger of the two)
• The minimum (the smaller of the two)

Hint: The max and min functions are declared in the Math class.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: