1347 Problem A 是元音字母吗?
Description
输入一个英文字母,判断是否是元音字母。元音字母是:a,e,i,o u,A,E,I,O,U
Input
输入一个英文字母
Output
是元音字母,输出“yes”,否则输出“no”,行尾没有回车。
Sample Input
A
Sample Output
yes
#include <stdio.h>
int main()
{
char n;
scanf("%c",&n);
switch(n)
{
case 'a':printf("yes");break;
case 'e':printf("yes");break;
case 'i':printf("yes");break;
case 'o':printf("yes");break;
case 'u':printf("yes");break;
case 'A':printf("yes");break;
case 'E':printf("yes");break;
case 'I':printf("yes");break;
case 'O':printf("yes");break;
case 'U':printf("yes");break;
default:printf("no");break;
}
return 0;
}