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
Java Assuming the values of x and y have already been entered by the user heres the code ... View full answer
Get step-by-step solutions from verified subject matter experts
