title: If statement for structure
body: <p>I have to write if statement for structure for person which:</p>
  
  <p>Is older or equal 16 and younger or equal 20
  First letter of name and surname must be 's' or 'n'</p>
  
  <p>My code:</p>
  
  <pre><code>if(x.name[0]=='s' ||
     x.name[0]=='n' &amp;&amp;
     x.surname[0]=='s' ||
     x.surname[0]=='n' &amp;&amp;
     (x.age&gt;=16 &amp;&amp; x.age&lt;=20))
  {
    /* print person */
  }
  </code></pre>
  
  <p>I want just to print out these persons, but code prints non-compliant ages.</p>
  
  <p>What is wrong with the condition?</p>