title: How did this output come from this program?
body: <p>Hello pro coders of stackoverflow community, I'm still a beginner and I need help understanding the problem below:</p>
  
  <pre><code>int main()
  {
      int x=4,y=0;
      while(x&gt;=0)
      {
          if(x==y)
              break;
          else
              printf("\n%d%d",x,y);
          x--;
          y++;
      }
  }
  </code></pre>
  
  <p>How and why is the output 40 and 31, thanks in advance</p>