Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int num;
- cin >> num;
- int counter = 0;
- while (num >= 5)
- {
- counter += num / 5;
- num /= 5;
- }
- cout << counter << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement