#include <stdio.h>
#include <math.h>

typedef struct point
{
    int xpos;
    int ypos;
}Point;

void ShowPosition(Point pos)
{
    printf("[%d, %d] \n",pos.xpos, pos.ypos);
}

Point GetCurrentPosition(void)
{
    Point cen;
    printf("Input current pos: ");
    scanf("%d %d", &cen.xpos, &cen.ypos);
    return cen;
}
int main()
{
    Point curPos=GetCurrentPosition();
    ShowPosition(curPos);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: