#include..
int x,y,x1,x2,y1,y2;
int midpoint (int x, int y)
{
x=2(x1+x2);
y=2(y1+y2);
}
void main()
{
clrscr();
printf("enter 4 points");
scanf("%d %d %d %d",&x1,&x2,&y1,&y2);
midpoint(x,y);
printf("the midpoint is %d %d",x,y);
getch();
}
i cant run my program i think there's a problem in the function midpoint but i cant figure it out