I have to created an array in which I store the coordinates of n target (n is determinate when the user calls the program).
Than I want to compute the distance from each target to each target. So from target 1 to target 2, store the number ob steps, then form 1 to 3 and so on. Therefore I tried to use two "for"-loops to iterate through the array.
So my approach was first store the x and y Coordinates in a two dimensional array. So x in the first column y in the second.
Then I wanted to read the coordinates from the array and pass it to an function, which calculates the number of steps. But here's my problem: The two for-loops I use to iterate through the array seem don't work as planed. The first loop gets the target, where I'm starting from, the second loop should go to the other targets and get the coordinates.