Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include"stdio.h"
- int main()
- {
- int a[5][5]={ {2,4,5,2,4}, {4,5,4,6,5}, {1,4,2,8,7}, {5,4,7,2,1}, {9,4,2,4,1} };
- int i,j,min=9999,max=-9999;
- for(i=0;i<5;i++)
- {
- printf("\n");
- for(j=0;j<5;j++)
- printf("%3d ",a[i][j]);
- }
- for(i=0;i<5;i++)
- {
- min = 9999;
- for(j=0;j<5;j++)
- {
- if(a[i][j]<min)
- min = a[i][j];
- }
- if(min > max)
- {
- max=min;
- }
- }
- printf("\nLon nhat trong so nho nhat/hang: %d",max);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement