title: Why is my yes(Y) not working but my no(N) working
body: <pre class="lang-c prettyprint-override"><code>#include &lt;stdio.h&gt;
  
  int main(){
      float fever ;
  
      printf(&quot;do you have fever? Enter Y or N: &quot;);
      scanf(&quot;%f&quot;, &amp;fever);
      
      if(fever =='y') {
          printf(&quot;you have symptom\n&quot;);
      } 
      else {
          printf(&quot;you dont have symptom\n&quot;);
      }
  
    return 0;
  }
  </code></pre>