Advertisement
Guest User

21

a guest
May 5th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int n[4][5]={0}, i, j, max=0, lin, col;
  7.  
  8.     for(i=0; i<4; i++){
  9.         for(j=0; j<5; j++){
  10.             scanf("%d", &n[i][j]);{
  11.  
  12.         if(n[i][j] > max){
  13.             max=n[i][j];
  14.             lin=i;
  15.             col=j;
  16.             }
  17.  
  18.         }
  19.  
  20.     }
  21.     }
  22.     printf("%d %d %d", max, lin, col);
  23.  
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement