解题思路:
注意事项:
参考代码:
#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 人评分
假币问题 (C++代码)(向上取整的一种处理方式)浏览:1660 |
C二级辅导-求偶数和 (C语言代码)浏览:603 |
奖学金 (C++代码)浏览:2005 |
C语言训练-大、小写问题 (C语言代码)浏览:2349 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:373 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:530 |
C语言程序设计教程(第三版)课后习题4.9 (C语言代码)浏览:590 |
A+B for Input-Output Practice (III) (C语言代码)浏览:569 |
【蟠桃记】 (C语言代码)浏览:664 |
The 3n + 1 problem (C语言代码)浏览:548 |