/* Каранин Алексей 08-ПМ Лабораторная работа 12 Матрицы Задание: Дана квадратная матрица A (NxN) Вычислить значение величины (A11+A12+..+A1N)*(A22+A23+..A2N)*..*ANN Исходную матрицу и результат вывести на печать. */ #include #include #include void main() { double **a; int n,i,j; double k,l; FILE *fin, *fout; fin=fopen("12_in.txt","r"); if (fin==NULL) {printf("Can't open file 12_in.txt\n"); exit(1);} fout=fopen("12_out.txt","w"); if (fout==NULL) {printf("Can't open file 12_out.txt\n"); exit(1);} fscanf(fin,"%d",&n); a=(double **)malloc(n*sizeof(double *)); if (a==NULL) {printf("Can't allocate memory\n");exit(1);} for (i=0; i