title: Program to print the binary equivalent of a number without using format specifiers
body: <p>Jus check out this program.Logically it seems fine but its giving 000000000000000000000 for everything</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  void main()
  {
    int n=25,k=32;
    printf("binary equivalent\n");
    while(k!=0)
    {
      if((n&gt;&gt;1&amp;0x01)!=0)
        printf("1");
      else
       printf("0");
      k--;
    }
  }
  </code></pre>