自己写的。C语言。题解 | #统计大写字母个数#
统计大写字母个数
https://www.nowcoder.com/practice/434414efe5ea48e5b06ebf2b35434a9c
#include<stdio.h>
int main() {
    int c, num = 0;
    while ((c = getchar()) != 10) {
        if ('A' <= c && c <= 'Z') {
            num++;
        }
    }
    printf("%d\n", num);
    return 0;
}
 联想公司福利 1498人发布
联想公司福利 1498人发布