(Closest pair) Listing finds a closest pair of two points. The program prompts the user to enter 8 points. The number 8 is fixed. Rewrite the program. First, prompt the user to enter the number of points, and then prompt the user to enter all the points.

Listing

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.