Varianta 35 / Subiectul 2 / Problema 5 |
#include<iostream.h> void main() { int i,min,j,n,a[10][10]; cin>>n; for(i=1;i<=n;i++) for(j=1;j<=n;j++) cin>>a[i][j]; for(j=1;j<=n;j++) {min=1000; for(i=1 ;i<=n;i++) if(a[i][j]<min) min=a[i][j]; cout<<min<<" "; } } |