title: Else if conditions are not executed properly
body: <p>I am trying to build a small c program that asks the gender and the age of the user. So if the gender if 'F' and age>18 the message will be "woman" otherwise display "young girl" and likewise for the gender "M".
  But according to my code only the two first conditions are executed properly then when coming to "else if" condition messages are wrong</p>
  
  <p>Below is the code I wrote.</p>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  char sexe;
  int age;
  
  int main()
  {
      if(age&gt;=18)
      {
          printf("\n Woman");
      }
      else
      {
          printf("\n young girl");
      }
  
      return 0;
  }
  else if(sexe='M');
  {
      if(age&gt;50)
      {
          printf("\n Old man");
      }
      else
      {
          printf("\n Young man");
      }
  
  }
  return 0;
  
  }
  }
  </code></pre>