#include <iostream>
using namespace std;
int main()
{
int n,a[101][101],i,j,col;
cout<<"n=";
cin>>n;
cout<<"Numarul coloanei este : ";
cin>>col;
cout<<"Matricea este : ";
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
cin>>a[i][j];
for(i=1;i<=n;i++)
{
for(j=1;j<=n;j++)
cout<<a[i][j]<<" ";
cout<<"\n";
}
int s=0;
for(i=1;i<=n;i++)
s+=a[i][col];
cout<<"Suma elementelor de pe coloana "<<col<<" este : "<<s;
}