I am using that but I only get some strange words :(
I get my coordinates from x and y array..... what is the problem???
for(a=1;a<i;a++){
yyy=(y[a-1]- y[a]);
xxx=(x[a-1]- x[a]);
slope[a-1]=yyy/xxx;}
yyy=(y[i-1]- y[0]);
xxx=(x[i-1]- x[0]);
slope[i-1]=yyy/xxx;
for(b=1;b<i;b++){
yyy=(slope[b-1]+slope[b]);
xxx=(1-slope[b-1]*slope[b]);
angle=yyy/xxx;
res=acos(angle) * (180/3.14);
printf("%d. Angle %f\n",b,res);}
yyy=(slope[i-1]+slope[0]);
xxx=(1-slope[i-1]*slope[0]);
lastangle=yyy/xxx;
res=acos(lastangle) * (180/3.14);
printf("%d. Angle %f\n",b,res);