Trying to calculate distance between two points using arrays and two functions. The two points are taken from user input. Program runs correctly in that it gets user input,