当前位置:网站首页>Zzuli:1065 count the number of numeric characters
Zzuli:1065 count the number of numeric characters
2022-07-02 05:29:00 【Don't explode】
Title Description
Enter a line of characters , Take carriage return as the sign of the end of input . Count the number of numeric characters .
Input
Multiple characters , End with carriage return , Carriage return is not a valid character .
Output
Output an integer , Represents the number of numeric characters .
The sample input Copy
[email protected]
Sample output Copy
8
#include <stdio.h>
int main()
{
char ch;
int sum=0;
while(scanf("%c",&ch),ch!='\n')
{
if(ch>='0'&&ch<='9')
sum++;
}
printf("%d",sum);
return 0;
}边栏推荐
- Global and Chinese markets of semiconductor laser therapeutics 2022-2028: Research Report on technology, participants, trends, market size and share
- Common protocols and download paths of NR
- 黑馬筆記---Set系列集合
- Fabric.js IText 手动设置斜体
- Global and Chinese market of insulin pens 2022-2028: Research Report on technology, participants, trends, market size and share
- ubuntu20.04安装mysql8
- Storage of data
- How to make an RPM file
- 视差特效的原理和实现方法
- Global and Chinese markets for marine selective catalytic reduction systems 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

6.网络-基础

Fabric. JS centered element

Collectors.groupingBy 排序

Brew install * failed, solution
![Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]](/img/78/a17034d4b77d5c0dbe741f84a8ecd7.jpg)
Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]

Fabric.js 精简JSON

创新永不止步——nVisual网络可视化平台针对Excel导入的创新历程

How matlab marks' a 'in the figure and how matlab marks points and solid points in the figure

2022-2-15 learning xiangniuke project - Section 8 check login status

Fabric. JS upload local image to canvas background
随机推荐
黑馬筆記---Set系列集合
Basic use of form
LS1046nfs挂载文件系统
数据库批量插入数据
Paddlepaddle project source code
Gee: analyze the change of spatial centroid of remote sensing image [centroid acquisition analysis]
Leetcode18题 【四数之和】递归解法
Record sentry's path of stepping on the pit
Software testing learning - day 4
Fabric.js 更换图片的3种方法(包括更换分组内的图片,以及存在缓存的情况)
Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]
Mysql基础---查询(1天学会mysql基础)
RNN recurrent neural network
Using QA band and bit mask in Google Earth engine
Common protocols and download paths of NR
Gee series: unit 8 time series analysis in Google Earth engine [time series]
Résumé de la collection de plug - ins couramment utilisée dans les outils de développement idea
Fabric.js 圆形笔刷
Pytorch Basics
Gee series: unit 6 building various remote sensing indexes in Google Earth engine