Hi

I am pasting here code for finding coordinates of a regular polygon.

```
void main()
{
int no_of_side = 6, side_length=10, i;
float ext_angle = 60;
float angle=0.0;
float x_coord[6], y_coord[6];
for(i=no_of_side-1; i>=0; i--)
{
x_coord[i] = x_coord[i] + side_length * angle + side_length ;
y_coord[i] = y_coord[i] + side_length * angle + side_length ;
angle = angle + ext_angle;
}
for(i=no_of_side-1; i>=0; i--)
{
printf("\nX Coord = %f ",x_coord[i]);
printf("\Y Coord = %f \n",y_coord[i]);
}
getch();
}
```

What will be the code for finding coordinates of a polyhex, let suppose there are 20 or 50 points, how to arrange these points in a polyhex?

Thanks in advance

Vikash