Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main(){
- string nome{"MAthEus S. SerPA"};
- int vogais = 0;
- for(char c : nome)
- if(tolower(c) == 'a' || tolower(c) == 'e' || tolower(c) == 'i' || tolower(c) == 'o' || tolower(c) == 'u')
- vogais++;
- cout << "Vogais: " << vogais << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement