Solution to the problem number 138 of AceptaelReto - 138.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;
int main()
{
    long long int casos,n;
    cin>>casos;
    while(casos--)
    {
        cin>>n;
        int r = 0;
               while (n >= 5) {
                   r += n / 5;
                   n /= 5;
                   }
               cout<<r<<"\n";
    }
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!