char s[80];
int L;
char c;
int N_cap, N_low, N_num, N_blank, N_other
N_cap=0; N_low=0; N_num=0, N_blank=0;
scanf("%s",s);
L= len(s);
int i=0;
for (i=0;i<L; i++){
c=S[i];
if( c ==' ') then N_blank++ else
if( c >= 'A' && c<='Z') then
N_cap++;
else
if (c >= 'a' && c<='z') then
N_low++;
s[i] += 'A'-'a';
else
if (c >= '0' && c<='9') then
N_num++;
else
N_other++;
end if
end if
end if
end if
};
printf( "结果是:%s", s);
温馨提示:答案为网友推荐,仅供参考