I am wondering why I can't input the second set of numbers in my code. After I enter the first set of numbers and press enter, it solves the problem, without letting me input my second set of numbers.
You mean the program only let you input values for x1 and x2? In that case please show us the input you're feeding the program because it seems to work fine for me.
No I mean the program is only letting me input x1, y1 and then when I press enter it outputs the result of the distance without letting me input x2 and y2. The number I am using are as follow: