Enhance the output of Exercise E4.3 so that the numbers are properly aligned: Data from exercise

Question:

Enhance the output of Exercise •• E4.3 so that the numbers are properly aligned:

image text in transcribed

Data from exercise E 4.3

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)

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: