我的代码是先输入char格式。。然后我选出其中的数字再转换为int格式最后算出平均值。。要怎么做
for(i=0; i< strlen(s); i++){if(s[i] >= '0' && s[i] <= '9')}