I am trying to create a bounded rectangle using a random number of points that are provided by the user. The reason this is difficult for me is because all the numbers must be accepted on only one line, I don't know how many variables the user will provide, and since I am accepting points, I must have the right amount (evens).
Here is a sample run:
Enter the points:
``>>>4 1 3 5 1 5 9 0 2 5
My primary question is how do I unpack a random number of points? And also, how do I pair the even points together?