public class Demo {
public static void main(String[] args) {
//单词辅音 元音数量
String str = "lanqiao";
int yuan = 0;
int fu = 0;
for(int i = 0;i < str.length();i++) {
char c = str.charAt(i);
if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
yuan++;
}else {
fu++;
}
}
System.out.println("元" + yuan);
System.out.println("辅" + fu);
}
}