title: Number of zeroes at the end of factorial
body: <p>I need to find the number of zeroes at the end of a factorial number. So here is my code, but it doesn't quite work :/ </p>
  
  <pre><code>using System;
  
  class Sum
  {
      static void Main(string[] args)
      {
          int n = int.Parse(Console.ReadLine());
          long factoriel = 1;
  
          for (int i = 1; i &lt;= n; i++)
          {
              factoriel *= i;
          }
  
          Console.WriteLine(factoriel);
  
          int timesZero = 0;
  
          while(factoriel % 10 != 0)
          {
              timesZero++;
          }
          Console.WriteLine(timesZero);
      }
  }
  </code></pre>
  
  <p>I know I can use a <code>for loop</code> and divide by 5, but I don't want to. Where is the problem in my code and why isn't it working?</p>