The program below is the solution to Liang’s Introduction to Java Programming (9th Edition) Chapter 2 Exercise 2.19.

Question: Write a program that prompts the user to enter two points (x1, y1) and (x2, y2) and displays their distance between them.

Ex02.19: liang introduction to java programming
Program output

Click here to see other solutions to Introduction to Java Programming.

Write A Comment