Guest User

dsdsdsdsdsdsdsds

a guest
Jan 24th, 2017
132
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. main()
  3. {
  4. int a[10][10],b[10],br,n,m,max,min,i,j;
  5. scanf("%d",&n);
  6. scanf("%d",&m);
  7. br = 0;
  8. for(i=0;i<n;i++)
  9. {
  10. scanf("%d",&a[i][0]);
  11. min = a[i][0];
  12. for (j=1;j<m;j++)
  13. {
  14. scanf("%d",&a[i][j]);
  15. if (min>a[i][j])
  16. {
  17. min = a[i][j];
  18. }
  19. }
  20. b[br] = min;
  21. br++;
  22. }
  23. max = b[0];
  24. printf("%d\n",br);
  25. for(i=0;i<br;i++)
  26. {
  27. if (max<b[i])
  28. {
  29. max = b[i];
  30. }
  31. }
  32. printf("%d",max);
  33. system("pause");
  34. }
RAW Paste Data