题解 | #判断字母#
判断字母
https://www.nowcoder.com/practice/44d2d63103664913bc243d3836b4f341
#include <stdio.h> int main() { char ch = 0; scanf("%c", &ch); if (ch>='a' && ch<='z' || ch>='A' && ch<='Z') { printf("YES"); } else { printf("NO"); } return 0; }
判断字母
https://www.nowcoder.com/practice/44d2d63103664913bc243d3836b4f341
#include <stdio.h> int main() { char ch = 0; scanf("%c", &ch); if (ch>='a' && ch<='z' || ch>='A' && ch<='Z') { printf("YES"); } else { printf("NO"); } return 0; }
相关推荐