#include <stdio.h>
#include <conio.h>
#include <math.h>
int i,j,n,k,z;
int a[20][20], x[20], y[20];
main();
{
printf("N sayisini giriniz..:");
scanf("%d\n", &n);
for (i=0 ; i++);
{
for (j=0; j++);
scanf("%d\n", &a[i][j]);
}
for (i=0; i<n; i++);
{
x[i]=0; y[i]=0;
for ( j=0; j<n; j++);
scanf("%d\n", &a[i],[j]);
}
for (i=0 ; i<n; i++);
{
x[i]=0; y[i]=0;
for (j=0; j<n; j++);
{
x[i]=x[i]+ a[i],[j];
y[i]=y[i] + a[j],[i];
}
}
for (k=0; k<n; k++);
{
printf("%d", x[k]);
printf("%d", y[k]);
printf("\n");
}
getch();
}