Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  iek2
Language: C/C++
Code:
#include <stdio.h>
main()
{
int p[5][5],x,y,sumx,sumy,sum;
clrscr();
for (x=0; x<=3; x++)
for (y=0; y<=3; y++)
{
printf("Dose stoixeio p[%t,%d]:", x,y);
scanf("%d", &p[x][y]);
}
sum=0;
for(x=0; x<=3; x++)
{
sumx=sumx+p[x][y];
sumy=sumy+p[y][x];
sum=sum+p[x][y];
}
p[x][4]=sumx;
p[4][y]=sumy;
}
Comments: