How can I control my programe to keep on screen or back to code in C++?
<p>I want to run a program that gets the input from user and show the result but after that it will ask the user if he/she want some more calculation then press y or to back to code press n.. but how can i do this..</p>

<p>this is my code</p>

<pre><code>#include&lt;iostream.h&gt;
#include&lt;conio.h&gt;
int main()
{
    clrscr();

    int a;
    double p;
    char ch;
    //i have used the asci code of Tab in place of n..
    ch==9;
    p=1;
    while(a!=ch)
    {
        cout&lt;&lt;"enter number=";
        cin&gt;&gt;a;
        for(int c=a; c&gt;=1; c--)
        {
            p=p*c;

            cout&lt;&lt;"\n\n"&lt;&lt;p&lt;&lt;endl&lt;&lt;endl;
        }
    }

    getch();
}
</code></pre>
