Do While Loop to get an Input : <p>In my c++ code I want to get an input from the user repeatedly until the user inputs "0" as the input. But the loop doesn't work at all.
Here is my code....</p>

<pre><code>#include "stdafx.h"
#include&lt;iostream&gt;
using namespace std;

int main()
{
int option;

do
{
    cout&lt;&lt;"Enter your Option"&lt;&lt;endl;
    cin&gt;&gt;option;


}
while(option == 0);
char ch;
cin&gt;&gt;ch;
return 0;
}
</code></pre>
