title: C Program that prints Multiples of 3, 5 and both, professional style suggestion
body: <p>I wrote my first simple C program that prints multiples of 3 , 5 and both 3 and 5 instead of the number, from 1 to 100. It works.</p>
  <p>I know this program can be written in million different ways. How would a professional C programmer implement best practices? As a perfectionist, I'm trying to implement highest best standards, mainly pointers and professional function implementations and preprocessors.</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  void findMultiples(int n);
  
  
  int main() {
      
      findMultiples(100);
      
      return 0;
  }
  
  void findMultiples(int n){
      for (int i = 1; i &lt;= n; i++)
          if (i % 15 == 0){
              printf(&quot;Multiple of 3 and 5\n&quot;);
          }
          else if (i % 5 == 0){
              printf(&quot;Multiple of 5\n&quot;);
          }
          else if (i % 3 == 0){
              printf(&quot;Multiple of 3\n&quot;);
          }
          else{
              printf(&quot;%d\n&quot;, i);
          }
  }
  </code></pre>