Question: java input two numbers x and y, write a multithreading program to calculate (x*y) / (x+y), you should create 2 of your own threads to
java
input two numbers x and y, write a multithreading program to calculate (x*y) / (x+y), you should create 2 of your own threads to complete this, one thread for (x*y), one thread for (x+y), and complete the final step, the divide part, in main() thread.
(warning: using the code System.out.println((x*y)) / (x+y)) will have 0 scores.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
