APCSA/U5/L4/U5_L4_Activity_Two.java
2026-03-25 09:44:12 -07:00

18 lines
475 B
Java

/* Lesson 4 Coding Activity Question 2 */
import java.util.Scanner;
public class U5_L4_Activity_Two {
public static double distance(int x1, int y1, int x2, int y2) {
return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));
}
// You can uncomment and add to the main method to test your code
// You will need to remove/comment out this method before checking your code for a score
/*
public static void main(String[] args){
}
*/
}