title: Why is the else statement still printing after the if statement is satisfied?
body: <p>Sorry I'm new to stackoverflow but I had a problem while coding. I created this simple 
  program but I noticesd that it still printed the else statement after it was done with the if statement. The code is written in c++ and your help is deeply appreciated. </p>
  
  <pre><code># include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
      char check;
      bool done = false;
      while(not done)
      {
          cout&lt;&lt;"Please enter one of the options provided below."&lt;&lt;endl;
          cout&lt;&lt;"D = distance S = second F = first"&lt;&lt;endl;
          cin&gt;&gt;check;
          if(check == 'D')
          {
              cout&lt;&lt;"You pressed D"&lt;&lt;endl;
          }
          if(check == 'S')
          {
              cout&lt;&lt;"You pressed S"&lt;&lt;endl;
          }
          if(check == 'F')
          {
              cout&lt;&lt;"You pressed F"&lt;&lt;endl;
          }
          else
              cout&lt;&lt;"You suck!";
      }
      return 0;
  }
  </code></pre>
  
  <p>For example, when I press D, I only want to receive <code>You pressed D</code>as the output. Instead I get <code>You pressed D You suck!</code></p>