Home > Back-end >  The results of the calculation of the distance between two points in, use Math. The min () method wh
The results of the calculation of the distance between two points in, use Math. The min () method wh

Time:10-11

Thank thank you had better write code

CodePudding user response:

The class Main
{
Public static void main (String [] args)
{
Double a=0;
Double b=0;
Double c=3.8;
Double d=4.2;
Double e=3.2;
Double f=4.5;
Double g=Math. SQRT (math.h pow (a - c), (2) + math.h pow (b, d), (2));
Double h=Math. SQRT (math.h pow (a - e), (2) + math.h pow (-f (b), 2));
System. The out. Println (Math. Min (g, h));
}
}
This is what I write

CodePudding user response:

Is three points 0.0 for the origin
  • Related