Question: Give an example of java program which will take input as 2 numbers (INT first, INT second) and print 4 outputs (add, subtract, multiply, divide)

Give an example of java program which will take input as 2 numbers (INT first, INT second) and print 4 outputs (add, subtract, multiply, divide) applying following functions:

a = first + second;

s= first - second;

m= first * second;

d = first / second;

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!