#include<conio.h>

#include<stdio.h>

main(){

int a[100][2],b[100],c[100],x,y,n,d[2],e[2];

printf(“enter the maximum number”);

scanf("%d",&n);

printf(“enter the coordinate”);

for(x=0;x<n;x++)

{

for(y=0;y<2;y++)

{

scanf("%d",&(a[x][y]));

}

```
}
for(x=0;x<=n;x++)
{
b[x]=a[x+1]-a[x];
c[x]=b[x]*b[x];
printf("c=%d",c[x]);
}
for(y=0;x<=2;y++)
{
d[x]=a[y+1]-a[y];
e[x]=d[x]*d[x];
printf("e=%d",e[x]);
}
}
```