Back In the print window choose "Save as PDF" as the destination
NOTE.CS

Count Vowels

1 topic ยท 28 Nov 2026
1

Count Vowels

Problem Solving
C++
string s = "Programming";
int count = 0;
for(char c : s){
    c = tolower(c);
    if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u')
        count++;
}
cout << count; // 3