Question: This activity will show you how to do simple math operations to int values. The values of int x and int y will be asked

This activity will show you how to do simple math operations to int values. The values of int x and int y will be asked for in the console when you run the application yourself. You will have to put in two numbers you want to use. However for the test you just have to provide the code for printing out the sum, difference, product and quotient for x and y. Please follow the steps below:

Steps:

// 1. Print the sum of x and y. // 2. Print the difference of x and y.

// 3. Print the product of x and y.

// 4. Print the quotient of x and y.

Step by Step Solution

3.36 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Java Assuming the values of x and y have already been entered by the user heres the code ... View full answer

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!