#include < graphics.h >
#include < stdio.h >
int main() {
int i;
int graphdriver = DETECT;
int graphmode;
initgraph( & graphdriver, &graphmode, "");
cleardevice();
moveto(100, 100);
linerel(200, 0);
linerel(0, 200);
linerel( - 200, 0);
linerel(0, -200);
moverel(200, 200);
lineto(getmaxx(), getmaxy());
getch();
printf("(%d,%d)", getx(), gety());
getch();
closegraph();
return 0;
}