【十二题解】 | #统计大写字母个数#
统计大写字母个数
http://www.nowcoder.com/practice/434414efe5ea48e5b06ebf2b35434a9c
#include<stdio.h>
int main(){
char data;
while(scanf("%c", &data) != EOF){
int all = 0;
if(data>='A' && data<='Z')all++;
while(data!='\n'){
scanf("%c", &data);
if(data>='A' && data<='Z')all++;
}
printf("%d\n", all);
}
}