How do I use a loop to display a menu and re-prompt for input?
<p>I want to have a menu display that accepts user input. However, I want the user to be able to go back to the beginning of the menu to reselect options.</p>

<pre><code>while(end != 1) {
    display menu options
    prompt user for input
        if(input == x) {
            do this
        }
        else
            do that
}
</code></pre>

<p>then, i want it to skip back up to the beginning of the loop and ask the question over again. Howcan I do this without creating an infinite loop of the menu printing across the screen?</p>
