2.代码如下:
#include<iostream>
using namespace std;
int main()
{
int num;
cin>>num;
int sum=0;
while(num>0) {
sum+=num/5;
num=num/5;
}
cout<<sum;
return 0;
}
2.代码如下:
#include<iostream>
using namespace std;
int main()
{
int num;
cin>>num;
int sum=0;
while(num>0) {
sum+=num/5;
num=num/5;
}
cout<<sum;
return 0;
}