#include&lt;stdio.h&gt;<br>#define N 100<br>main ()<br>{<br> int i,count=0;<br> char a[N];<br> for(i=0;i&lt;N;i++)<br> {<br> scanf("%c",&a[i]);<br> if(a[i]=='\n')<br> break;<br> if(a[i]=='a'||a[i]=='e'||a[i]=='i'||a[i]=='o'||<br> a[i]=='u'||a[i]=='A'||a[i]=='E'||a[i]=='I'||<br> a[i]=='O'||a[i]=='U')<br> count++;<br> }<br> printf("元音个数为:%d\n",count);<br>}