#include<conio.h>
#include<stdio.h>
struct pt
{
 float x;
 float y;
};
struct pt add(struct pt ,struct pt );

void main()
{
 struct pt a,b,c;
 clrscr();
 a.x=1;a.y=2;b.x=3;b.y=4;
 c=add(a,b);
 printf("\n x Co-ordinates=%.2f and y-coordinates=%.2f",c.x,c.y);
 getch();
}

struct pt add(struct pt p,struct pt q)
{
 struct pt w;
 w.x=p.x+q.x;
 w.y=p.y+q.y;
 return w;
}
