Beginner


私信TA

用户名:08153441

访问量:46158

签 名:

太难了

等  级
排  名 88
经  验 8563
参赛次数 2
文章发表 63
年  龄 0
在职情况 学生
学  校 CUMT
专  业 计算机科学与技术

  自我简介:

解题思路:





注意事项:





参考代码:

#include<stdio.h>
#include<string.h>
int main()
{
    int count=0,i;
    char str[110]={0};
    scanf("%s",str);
    for(i=0;i<strlen(str);i++)
    {
        if(str[i]>='a'&&str[i]<='z'||str[i]>='A'&&str[i]<='Z')
            count++;
    }
    printf("%d",count);
    return 0;
}

 

0.0分

0 人评分

  评论区