P51题13题
来源:互联网 发布:linux 程序的守护进程 编辑:程序博客网 时间:2024/05/16 17:30
#include<stdio.h>
#include<stdlib.h>
int main()
{
int ch;
int number=0;
int n=0;
while((ch=getchar())!='*')
{
if((ch>='A'&&ch<='Z')||(ch>='a'&&ch<='z'))
{
n++;
}
else if(ch>='0'&&ch<='9')
{
number++;
}
}
printf("字母:%d\n",n);
printf("数字:%d\n",number);
return 0;
#include<stdlib.h>
int main()
{
int ch;
int number=0;
int n=0;
while((ch=getchar())!='*')
{
if((ch>='A'&&ch<='Z')||(ch>='a'&&ch<='z'))
{
n++;
}
else if(ch>='0'&&ch<='9')
{
number++;
}
}
printf("字母:%d\n",n);
printf("数字:%d\n",number);
return 0;
}
0 0
- P51题13题
- P51 第13题
- p51 第二章 第13题
- 电信141p51第13题
- P51 第一题
- P51 第一题
- P51 第3题
- P51 第4题
- P51 第6题
- P51 第一题
- P51页 第三题
- P51 第四题
- p51,第3题
- p51,第4题
- P51 第六题
- P51胡晓燕第四题
- P51胡晓燕11题
- P51第4题
- Linux入门:文件权限、用户、用户组
- 深度优先搜索 DFS(邻接矩阵表示)
- (2)设计模式:面向对象
- UML建模快速入门03 基本结构建模 CLASS
- Linux入门:文本编辑器(nano)
- P51题13题
- cracking the interview
- List,Set,Map用法以及区别
- VC6代码升级到高版本问题总结版
- 深度优先搜索DFS(邻接表实现)
- Linux入门:定制“Icon”样式
- 1维KD-Tree查找指定范围内的元素
- 线程之间的协作wait/notify
- 混合高斯模型(GMM)实现