解题思路:
注意事项:
参考代码:
#include<iostream> #include<cmath> #include<algorithm> using namespace std; int main() { string str; int count=0; cin>>str; for(int i=0;i<str.length();i++){ if(str[i]<='9'&&str[i]>='0') count++; } cout<<count<<endl; return 0; }
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题7.3 (C语言代码)浏览:625 |
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:674 |
C语言程序设计教程(第三版)课后习题7.3 (C语言代码)浏览:1196 |
WU-蓝桥杯算法提高VIP-企业奖金发放 (C++代码)浏览:1176 |
printf基础练习2 (C语言代码)浏览:646 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:634 |
最小公倍数 (C语言代码)浏览:1029 |
Tom数 (C语言代码)浏览:495 |
Tom数 (C语言代码)浏览:527 |
C二级辅导-阶乘数列 (C语言代码)浏览:522 |