Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: Kanan Asgarli
- https://www.e-olymp.com/az/problems/123
- */
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int n, sum;
- int main()
- {
- cin>>n;
- while(n > 0){
- n = n/5;
- sum += n;
- }
- cout<<sum<<endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment