title: How to go back to a certain point in the code
body: <p>I'm new to C++ programming.</p>
  
  <p>I just want to know if there is any way to go back to a certain point in the code without using a <code>while</code> or a <code>do-while</code> loop.</p>
  
  <p>Here is an example:</p>
  
  <pre><code>int a; 
  
  cout &lt;&lt; "What's 2+2?";
  cin &gt;&gt; a;
  if (a==4) {cout &lt;&lt; "Nice!";}
  else {cout &lt;&lt; "WRONG! Try again!";}
  </code></pre>
  
  <p>So, if the player fails, I want to ask the question again, so going back to:</p>
  
  <blockquote>
    <p>cout &lt;&lt; "What's 2+2?";</p>
  </blockquote>
  
  <p>Is there any way to do it without using a loop?</p>