n – matritsani satrlar soni;
m – matritsani ustunlar soni;
t – Noto’g’ri elementlar soni;
te – to’g’ri elementni kiritish
#include
using namespace std;
int main(){
int n,m;
cout<<"Satrlar sonini kiriting: ";
cin>>n;
cout<<"Ustunlar sonini kiriting: ";
cin>>m;
cout<<"Elementlarni kiriting: ";
int a[n+1][m+1];
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
cin>>a[i][j];
}
}cout <<"Massivni ko`rinishi\n";
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
cout<}cout <}
int t,i,te;
cout <<"Noto'g'ri elementlar sonini kiriting=";
cin >>t;
for (i=1;i<=t;i++){
cout<cin>>n>>m;
cout<<"To'g'ri elementni kiriting: ";
cin>>te;
a[n][m]=te;
}
cout <<" \n\nYangi massivni ko`rinishi\n";
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
cout<}cout <}
}
Do'stlaringiz bilan baham: |