title: Why not use a while loop for FIZZBUZZ in C?
body: <p>Only been coding in C for about a month, but wondered why the while loop wasn't used more often for FIZZBUZZ.  Is it not as clean or some other reason?  Here's what I came up with:</p>
  
  <pre><code>int main()
  {
      int num=1;
      while(num&lt;=100)
      {
          if (num%3==0 &amp;&amp; num%5==0)
          {
              printf("FIZZBUZZ!!!\n");
          }
          else if (num%3==0)
          {
              printf("FIZZ!!!\n");
          }
          else if (num%5==0)
          {
              printf("BUZZ!!!\n");
          }
          else
          {
              printf("%d\n", num);
          }
          num++;
      }
  
      return 0;
  </code></pre>
  
  <p>}</p>