017-guruh talabasi Jumayev Akobir


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

using namespace std;

int main()

{

char a[10][5];



for(int i=0;i<10; i++){

for(int j=0;j<5; j++){

cin>>a[i][j];

}

}



cout<<"\nMassiv: \n";

for(int i=0;i<10; i++){

for(int j=0;j<5; j++){

cout<

}

cout<

cout<<"\n Kiritilgan massivda bir marta qatnashgan belgilar:\n";

for(int j=0;j<5; j++){

for(int i=0;i<10; i++){

char c=a[i][j]; int k=0;

for(int j=0;j<5; j++){

for(int i=0;i<10; i++){

if(c==a[i][j]) k++;

} }


if(k==1) cout<} }


}


Download 101.48 Kb.

Do'stlaringiz bilan baham:
1   2




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