Solución
solution.tsTypeScript
import java.math.*;
public class Solution {
public double distanceBetweenPoints(double x1, double y1, double x2, double y2) {
String resultado = String.format("%.4f", Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2)));
return Double.parseDouble(resultado);
}
}0respuestas