#include <iostream>
using namespace std;
int i,j,n,a[10][10],c;
void citire()
{
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
{cout<<"a["<<i<<"]["<<j<<"]=";
cin>>a[i][j];
}
}
void coloana()
{
cout<<"Coloana pe care trebuie s-o elimin=";cin>>c;
for(i=1;i<=n;i++)
{for(j=1;j<=n;j++)
if(j!=c)
cout<<a[i][j];
cout<<"\n";}
}
int main()
{
cout<<"Numarul de linii si coloane este=";cin>>n;
citire();
coloana();
return 0;
}
Niciun comentariu:
Trimiteți un comentariu