017-guruh talabasi Jumayev Akobir


Download 101.48 Kb.
bet1/2
Sana02.06.2020
Hajmi101.48 Kb.
#113273
  1   2
Bog'liq
017-dasturlash 5- ish


017-guruh talabasi Jumayev Akobir



9-variant

#include

#include

#include

using namespace std;

int main()

{ srand(time(0));

int n,m;

cout<<"Ustunlar sonini kiriting :"<

cin>>n;


cout<<"Satrlar sonini kiriting :"< cin>>m;


int a[n][m];

for(int i=0;i

for(int j=0;j

a[i][j]=rand()% 9+1;

cout<<"a["<

}

}



cout<<"matritsa korinishda"<

for(int i=0;i

for(int j=0;j

cout<

}

cout<

}

cout<<"\nAlmashishdan keyingi matritsa:\n";

for(int i=0;i

for(int j=0;j

int c=a[i][j];

if(i != j) a[i][j]=c*c;

}

}

for(int i=0;i

for(int j=0;j

cout<

}

cout<

}

return 0;



}



#include


Download 101.48 Kb.

Do'stlaringiz bilan baham:
  1   2




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling