include stdio define int main void double sum int printf Vvedite matri

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#include<stdio.h>
# define N 4
int main (void)
{
double m[N][N], sum=0;
int i,j;
printf(" Vvedite matritsy\n");
for (i=0; i<N; i++)
for (j=0; j<N; j++)
scanf("%lf", &m[i][j]);
for(i=0; i<N; i++)
for(j=N-1; j>=i && j>=N-i-1;j--)
sum+=m[i][j];
printf("%lf", sum);
return 0;
}