C++ When inputting, program ends without continuing
<p>EDIT: Here is the If-Else. Please see what is going on. And can someone tell me how to return if the answer is wrong? Like, INcorrect answer, enter again?</p>

<p>using namespace std;</p>

<pre><code>int main()
{

cout&lt;&lt;"Welcome to the Grade Database. Please insert your domain: " ;
cout&lt;&lt;"\n";
int d, n;
cin&gt;&gt;d;
cout&lt;&lt;"Now enter your total grade(between 0-100): " ;
cin&gt;&gt;n;
if (n&gt;0 &amp;&amp; n&lt;59){
    cout&lt;&lt;"See you next year then :(" ;
    cout&lt;&lt;"F-"&lt;&lt;n;}
else if (n&lt;60 &amp;&amp; n&gt;=69){
    cout&lt;&lt;"Well...you pass ;D" ;
    cout&lt;&lt;"E-"&lt;&lt;n&lt;&lt;"  ~"&lt;&lt;d;}
else if (n&gt;70 &amp;&amp; n&lt;=79){
    cout&lt;&lt;"Better than the average!";
        cout&lt;&lt;"D-"&lt;&lt;n&lt;&lt;"  ~"&lt;&lt;d ;}
else if (n&gt;80 &amp;&amp; n&lt;=89){
    cout&lt;&lt;"Very well sir!";
    cout&lt;&lt;"C-"&lt;&lt;n&lt;&lt;"  ~"&lt;&lt;d;}
else if (n&gt;90 &amp;&amp; n&lt;=99){
    cout&lt;&lt;"Wow, amazing! One of the best!";
    cout&lt;&lt;"B-"&lt;&lt;n&lt;&lt;"  ~"&lt;&lt;d;}
else if(n==100){
    cout&lt;&lt;"Well, hello there Mr. Stephen Hawking.";
    cout&lt;&lt;"A-"&lt;&lt;n&lt;&lt;"  ~"&lt;&lt;d;}
else{
    cout&lt;&lt;"Invalid Entry.";}

return 0;
</code></pre>

<p>}</p>
