题解 1989: 奇数个数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1989: 奇数个数

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai……

奇数个数-题解(C语言代码)

摘要:解题思路:定义一个字符串,定义奇数的个数从0开始,输入一串字符串,并使用strlen统计字符串的长度,利用for循环统计奇数个数,并令其自增。输出即可。注意事项:定义的字符串长度要足够大;要利用str……

奇数个数-题解(C语言代码)

摘要:解题思路:注意J的初值,strlen是测量函数。注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char ch[100]; int……