So I have an array of coordinates, says A(x1,y1), B(x2, y2) and C(x3, y3). I need to find the angles between line AB and BC, the angle between line BC and line CA and the angle between the line CA and line AB. I already have the formula to find the angle, but I'm struggling to find the way to do that through a loop. Because the array can have n number of coordinates in it.