String str="Mana senga olam olam gul! Havo yaxshi."


Download 41.66 Kb.
Sana05.05.2023
Hajmi41.66 Kb.
#1432788
Bog'liq
dasturlash 9



MUHAMMAD AL-XORAZMIY NOMIDAGI
TOSHKENT AXBOROT TEXNOLOGIYALARI UNIVERSITETI

“Dasturlash II” FANIDAN


“Kompyuter injineringi” fakulteti “SWD003-L3” guruh talabasi
9-mustaqil ishi

Bajardi: Baxtiyorjonov Elbek





Kiruvchi

Chiquvchi

Mana senga olam olam gul!Havo yaxshi

7 a

Bugun imtihon.Demak,bayram ekan

4 a

1. #include "stdafx.h"


#include
#include
using namespace std;

int main()


{
string str="Mana senga olam olam gul! Havo yaxshi.";

int son=0,m=0;


char harf;
for(int i=0;i {
m=count(str.begin(), str.end(), str[i]);
if(son {
son=m;
harf=str[i];
}
}
cout< system("pause");

return 0;


}

2. #include "stdafx.h"


#include
#include
using namespace std;

int main()


{
string str="Bugun imtihon.Demak,bayram ekan.";

int son=0,m=0;


char harf;
for(int i=0;i {
m=count(str.begin(), str.end(), str[i]);
if(son {
son=m;
harf=str[i];
}
}
cout< system("pause");

return 0;


}

Download 41.66 Kb.

Do'stlaringiz bilan baham:




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