题解 | #判断是元音还是辅音#

判断是元音还是辅音

https://www.nowcoder.com/practice/7eb4df4d52c44d309081509cf52ecbc4

自找麻烦233
#include<stdio.h>
int main()
{
    char input = 0;
    while((input=getchar()) != EOF )
    {
        getchar();
        switch(input)
        {
            case 65:
            case 97:
            case 69:
            case 101:
            case 73:
            case 105:
            case 79:
            case 111:
            case 85:
            case 117:
                printf("Vowel\n");
                break;
            default:
                printf("Consonant\n");
                break;
        }
    }
    return 0;
}

全部评论
天才办法啊
点赞 回复 分享
发布于 2024-11-11 14:30 江西

相关推荐

评论
6
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务