Guruh: prg008-2 Bajardi: Davranov Azimjon




Download 327.85 Kb.
Sana01.12.2023
Hajmi327.85 Kb.
#109432
Bog'liq
Davranov Azimjon dasturlash 3
Davranov Azimjon dasturlash 2, 1425276982 60304, 1 – vazifa. Xotirani diagnostika qilish metodlari. Mnemotexnika , 1700037033, Ma\'lumotlarni tiklash 1-mustaqil ish, 152372188, Amaliyot №6 Cisco routerlarining buyruq interfeysi bilan ishlash, Suvonqulov Jahongir pedagogika va psixalogiya, Suvonqulov Jahongir, Nurlon Achilov, Pedagogika va Psixalogiya 5



Muhammad Al-Xorazmiy nomidagi
Toshkent axborot texnologiyalari universiteti

3-Mustaqil ish

Dasturlash

Guruh:PRG008-2
Bajardi: Davranov Azimjon
Tekshirdi: Saidov Samandar

#include


#include
using namespace std;
int countVowels(const char* sentence) {
const char* vowels = "aeiouAEIOU";
int vowelCount = 0;

for (int i = 0; i < strlen(sentence); ++i) {


if (strchr(vowels, sentence[i]) != nullptr) {
++vowelCount;
}
}

return vowelCount;


}

int main() {


const int maxInputLength = 100;
char inputSentence[maxInputLength];

cout << "Matn kiriting: ";


cin.getline(inputSentence, maxInputLength);

int result = countVowels(inputSentence);

cout << "Unli xarflar soni: " << result <

return 0;


}


Download 327.85 Kb.




Download 327.85 Kb.

Bosh sahifa
Aloqalar

    Bosh sahifa



Guruh: prg008-2 Bajardi: Davranov Azimjon

Download 327.85 Kb.