public class zero {
public static void main(String[] args) {
zero_();
}
public static void zero_()
{
int count=0;
for (int i = 0; i < 100000; i++) {
String tmp=i+"";
for (int j = 0; j < tmp.length(); j++) {
if (tmp.charAt(j)=='0') count++;
}
}
System.out.println(count);
}
}
看看吧!记得给分哦!