I know how to find the larger value by using Math.max but how do I multiply the other two values example:
double larger = Math.max(double, Math.max(double, double)); , so how do I make this equation larger*larger==shorter1^2+shorter2^2
posted 1 year ago
Easiest is by making an array of the three doubles, sorting it and then interrogating the equation. Three short lines of code.