title: Expected expression before 'if'
body: <p>Here is my code, the error code is</p>
  
  <blockquote>
    <p>Expected expression before 'if'</p>
  </blockquote>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
  
      int friends = 2;
  
      printf("I have %d friend%s", friends, (if(friends != 1){"s"})
             );
  
      /*In english you say "friends" when you have 0 or more than one. However if you have 1 you say "friend" without the letter s. I have created a conditional code but there is an error in my print code*/
  
      return 0;
  }
  </code></pre>