Beginning C and I have a bug that is killing me : <p>I am writing some code and I have a prompt in the program driven by a while loop where you make a choice. However, it prints the prompt twice every time it goes through the loop and I just can't figure it out.</p>

<pre><code>   while (choice != 'x'); 
        {
            printf("\nChoice (a)dd (v)iew e(X)it [ ]\b\b");
            scanf("%c",&amp;choice);
            if (choice == 'a') add_record(); 
            if (choice == 'v') view_record(); 
        }   
</code></pre>

<p>The printf line is the one that prints twice. Thanks in advance for any help.</p>
