题解 | #判断是不是字母#

判断是不是字母

https://www.nowcoder.com/practice/91a588dd4cd244bfa616f17603ec123c

#include <stdio.h>

int main() {
    char ch;
    while (scanf("%c",&ch) != EOF) 
    {
        getchar();
        if((ch >=65&& ch <= 90)||(ch>=97&&ch<=122))
        printf("%c is an alphabet.\n",ch);
        else
        printf("%c is not an alphabet.\n",ch);
    }
   
    return 0;
}

全部评论

相关推荐

哈哈哈哈哈哈哈哈哈哈这个世界太美好了
凉风落木楚山秋:毕业出路老师不管,你盖个章他好交差就完事了,等你盖完毕业了就不关他事情了
点赞 评论 收藏
分享
头顶尖尖的程序员:我是26届的不太懂,25届不应该是找的正式工作吗?为什么还在找实习?大四还实习的话是为了能转正的的岗位吗
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
07-07 13:46
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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