document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4. #define N 3
  5. int main()
  6. {
  7. float A[N][N] = {{ 3, -5, 4},
  8. { 2, 6, -9},
  9. { 7, 5, 3}};
  10. float norma, suma;
  11. int i, j;
  12.  
  13. norma = 0;
  14. for (i=0; i<N; i++)
  15. {
  16. suma = 0;
  17. for (j=0; j<N; j++)
  18. suma = suma + fabs(A[i][j]);
  19. if (suma > norma)
  20. norma = suma;
  21. }
  22.  
  23.  
  24. printf("Norma macierzy: %g\\n",norma);
  25.  
  26. return 0;
  27. }
');