{"size": 728, "ext": "js", "max_stars_repo_path": "src/index.js", "max_stars_repo_name": "Nox911/zeros", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/index.js", "max_issues_repo_name": "Nox911/zeros", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/index.js", "max_forks_repo_name": "Nox911/zeros", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.0606060606, "max_line_length": 58, "alphanum_fraction": 0.5274725275}
module.exports = function getZerosCount(number) {
    let zeros_of_five=0;
    let zeros_of_two=0;
    factorial (number);
    
    //calculate whole number of five
    function five (num) {
        if (num>=5) {
            return 	parseInt(num/5)+five(parseInt(num/5));
        }
        else {
            return 0;
        }
    }
    //calculate whole number of two
    function two (num) {
        if (num>=2) {
            return 	parseInt(num/2)+two(parseInt(num/2));
        }
        else {
            return 0;
        }
    }

    function factorial (num) {
        zeros_of_five+=five(num);
        // zeros_of_two+=two(mass);
    }

    // zeros+=Math.min(zeros_of_five,zeros_of_two);
    return zeros_of_five;
}
