#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;
}
Comments