daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main ()
  4. {
  5.     int n, i, j,m;
  6.     printf ("размер: ");
  7.     scanf ("%d", &n);
  8.     if (n<=0) return printf ("Error! Razmer N <= 0!");
  9.     int a[n][n];
  10.     printf ("Cherez probel vvedite %d element(a/ov) massiva: \n",n*n);
  11.     for (i = 0; i < n; i++) for (j = 0; j < n; j++)  scanf ("%d", &a[i][j]);
  12.     m=a[0][0];
  13.     printf("minimum: ");
  14.     for (j = 0; j < n; j++){
  15.         for (i = 0; i < n; i++){
  16.            if(a[i][j]<m) m=a[i][j];
  17.         }
  18.         printf("%d ",m);
  19.         m=a[i][0];
  20.        
  21.     }
  22.     return 0;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top