Question: Write a JAVA application that obtains the four integer numbers from the user and prints the sum, product, difference and quotient of the four numbers.

Write a JAVA application that obtains the four integer numbers from the user and prints the sum, product, difference and quotient of the four numbers. (User will input four integer numbers, 2,6,8, & 12 are example integer numbers)
Input (Your input must match the following below):
Hello out there
I will add, multiply, subtract and divide four numbers for you.
Enter four whole numbers on a line: 26812
Output (Your output must match the following below):
Sum: 2+6+8+12=28
Product: 2*6*8*12=1152
Difference: 26-8-12=-24
Quotient: 2/6/8/12=0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!