aboutsummaryrefslogtreecommitdiff
path: root/01_introductory_problems/trailing_zeros_1618.cpp
blob: 04cf85ba5b69d5f02d87e02fc9f7519afb28d316 (plain)
1
2
3
4
5
6
7
8
9
#include <iostream>

int main() {
	int n, c{0};
	std::cin >> n;
	while (n > 0)
		c += (n /= 5);
	std::cout << c << std::endl;
}

Generated with cgit - Back to sebastiano.tronto.net