public int count(int num)
{
int count;
int face=5;
while(face<=num){
count+=语句1 ;
face=face*5;
}
return count;
}
...全文
4273打赏收藏
计算1000!后有几个零?
参加笔试遇到计算1000!后又几个零 代码记不太清楚了,大致如下,是个填写缺省代码题 public int count(int num) { int count; int face=5; while(face<=num){ count+=语句1 ; face=face*5; } return count; }