Question: write a java code that accepts two integer inputs compares the two inputs and : if input 1 is bigger than input 2 it adds

write a java code that accepts two integer inputs compares the two inputs and : if input 1 is bigger than input 2 it adds them and displays the accurate sum.
If input 1 is smaller than input 2 it subtracts them and displays the accurate difference.
If input 1 and input 2 are equal it multiplies and displays the products
if input 2 is not equal to 0 it divides input 1 by input 2 and prints the accurate quotient with the remainder
all results must be printed in the following format: the result of adding and equals

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!