title: how to add loop in c++
body: <p>Could someone help me add a loop to my program? </p>
  
  <p>Here's the code:</p>
  
  <pre><code>cout &lt;&lt; "What do you do?" "\n";
      cout &lt;&lt; "\n";
      cout &lt;&lt; "(Press Enter...)";
      cin.ignore();
         cout &lt;&lt; "\n";
          cout &lt;&lt; "Stay in bed?" "\n";
          cout &lt;&lt; "Go to the bathroom?" "\n";
          cout &lt;&lt; "Go downstairs?" "\n";
      cout &lt;&lt; "\n";
  
      string answer;
      getline(cin, answer);
  
          if (answer == "stay in bed", "Stay in bed")
              {
                  cout &lt;&lt; "You lay there, motionless. Silent.";
              }
  
          else if (answer == "go to the bathroom", "Go to the bathroom")
              {
                  cout &lt;&lt; "You get up and walk across the hall to the bathroom";
              }
          else if (answer == "go downstairs", "Go downstairs")
              {
                  cout &lt;&lt; "You get up and walk downstairs to the kitchen.";
              }
          else
              {
                  cout &lt;&lt; "That is not a valid answer...";
              }
             cin.ignore();
  </code></pre>
  
  <p>How should I add a loop to where when user enters something falling under the condition of "else", the loop returns to ask "What do you do?"</p>