title: c# To check if a year is a leap year without DateTime
body: <p>Having some trouble with a program, currently in my 2nd week of programming course so sorry if this isn't the best place to ask.  </p>
  
  <pre><code>class Program
  {
      static void Main(string[] args)
      {
          int a;
          Console.WriteLine("Enter the year");
          a = int.Parse(Console.ReadLine());
          {
              if ((a % 4)  == 0)
                  Console.WriteLine("It's a leap year.");
              else
                  Console.WriteLine("It's not a leap year.");
          }
          Console.ReadLine();
      }
  }
  </code></pre>
  
  <p>Having lots of trouble with the formula for this.</p>