asgarlikanan

https://www.e-olymp.com/az/problems/123

Aug 15th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
4CS 0.25 KB | None | 0 0
  1. /*
  2.     Author: Kanan Asgarli
  3.     https://www.e-olymp.com/az/problems/123
  4. */
  5. #include <iostream>
  6. #include <algorithm>
  7. using namespace std;
  8. int n, sum;
  9. int main()
  10. {
  11.     cin>>n;
  12.     while(n > 0){
  13.         n = n/5;
  14.         sum += n;  
  15.     }
  16.     cout<<sum<<endl;
  17.     return 0;
  18. }
Add Comment
Please, Sign In to add comment