Hmm, I think Error014 is right. That should work.

Code:
for (i=0;i<pointnumber-1;i++) // we don't need the last one
{
 for (j=i+1;j<pointnumber;j++) 
 {
  if (i!=j) line(point[i],point[j]);
 }
}



I think the best way to imagine this is by thinking of a circle of points.


Your friendly mod is at your service.