Mustaqil ishim
Savol: n*m matritsa berilgan k qatorni olib tashlovchi dastur tuzing.
Dastur kodi:
#include #include
#include
#include using namespace std;
int main()
{
int m,n,k,son;
cout<<"m=";cin>>m;
cout<<"n=";cin>>n;
cout<<"\tO'chirmoqchi bo'lgan k chi qator elementini kiriting ";cin>>k;
int matritsa[m][n];
for(int i=0;ifor(int j=0;jcout<<"elementini kiriting ";cin>>son;
matritsa[i][j]=son;
}
}
cout<<" Matritsa quyidagi korinishda"<for(int i=0;ifor(int j=0;jcout<}
cout<}
cout<<" "<for(int i=0;i<(k-1);i++){
for(int j=0;jcout<
}
cout<}
for(int f=k; f {
for(int j=0; j{
cout<}
}
return 0;
}
Dastur rasmi: