fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n, say=0;
  6. cin>> n;
  7.  
  8. while(n>=5) {
  9. n= n / 5;
  10. say+= n;
  11. }
  12. cout<< say;
  13. return 0;
  14. }
Success #stdin #stdout 0s 544KB
stdin
25
stdout
6