title: How to print a triangle of Binary numbers in c#
body: <p>I need to add binary number logic into this snippet. I just cannot wrap my head around how to implement binary numbers, I could just add <code>0</code>s and <code>1</code>s but that does not seem to be right</p>
  
  <pre><code>namespace Star_Pyramid
  {
  class Program
  {
      static void Main(string[] args)
      {
          int num;
          Console.WriteLine("enter level");
          num = Int32.Parse(Console.ReadLine());
          int count = 1;
  
          for (int lines = num; lines &gt;= 1; lines--)
          {
  
              for (int spaces = lines - 1; spaces &gt;= 1; spaces--)
              {
                  Console.Write(" ");
  
              }
              for (int star = 1; star &lt;= count; star++)
              {
                  Console.Write("*");
                  Console.Write(" ");
  
              }
              count++;
  
              Console.WriteLine();
          }
          Console.ReadLine();
      }
      }
  }
  </code></pre>