Runnable code

import java.util.Scanner;


public class Test {

###5.0###

###7.0###

$$$0 3 4 0$$$

$$$0 3 0 10$$$

            public static void main(String[] args) {

                Scanner stdin = new Scanner(System.in);

                double x1 = stdin.nextDouble(), y1 = stdin.nextDouble(), 

                       x2 = stdin.nextDouble(), y2 = stdin.nextDouble(); 

                double distance;

                @@@

                double xDiff = Math.pow(x1-x2, 2);

                double yDiff = Math.pow(y1-y2, 2);

         

                distance = Math.sqrt(xDiff + yDiff);

                @@@

                System.out.print(distance);

            } 

}

 

There are three special delimiters

 

There are two types of runnable exercises:

 

We have also integrated OpenAI in our system, so you can quickly generate a solution based on your problem description.