How do I remove zeros between my outputs? : <pre><code>bool getAnswer(int a);

int main ()
{
string questions[5] = {"CPU stands for 'Central Processing Unit'", "RAM stands for 'Reserved Access Main'", "HDD stands for 'Hard Drive Doubler'", "SSD stands for 'Solid State Drive'", "CPP stands for 'C Programming Plus'"};

    for (int i = 0; i &lt; 5; i++)
    {
        cout &lt;&lt; "Question " &lt;&lt; ++i &lt;&lt; " \n";
        i--;
        cout &lt;&lt; questions[i] &lt;&lt; "\n";
        cout &lt;&lt; getAnswer(i) &lt;&lt; endl;
    }
}

bool getAnswer(int a)
{
    bool answer[5] = {true, false, false, true, false};
    bool user[5];
    string input;

    cout &lt;&lt; "Answer " &lt;&lt; ++a &lt;&lt; " \n";
    a--;

    cout &lt;&lt; "Enter a true or false answer: " &lt;&lt; "\n";
    cin &gt;&gt; input;

    while (input != "T" &amp;&amp; input != "t" &amp;&amp; input != "F" &amp;&amp; input != "f" &amp;&amp; input != "True" &amp;&amp; input != "true" &amp;&amp; input != "False" &amp;&amp; input != "false")
    {
        cout &lt;&lt; "Invalid entry, try again!\nEnter a true or false answer: " &lt;&lt; "\n";
        cin &gt;&gt; input;
    }

    if (input == "T" || input == "t" || input == "True" || input == "true")
    {
        user[a] = true;
    }
    else if (input == "F" || input == "f" || input == "False" || input == "false")
    {
        user[a] = false;
    }

    if (answer[a] == user[a])
    {
         cout &lt;&lt; "Correct!\n";
    }

     else if (answer[a] != user[a])
     {
         cout &lt;&lt; "Incorrect!\n";
     }
}
</code></pre>

<p>In the output between the correct/incorrect and next question, I keep getting a "0" in-between. How do i remove them. </p>

<p>Ex:
Question 1<br>
CPU stands for 'Central Processing Unit'<br>
Answer 1<br>
Enter a true or false answer:<br>
f<br>
Incorrect!<br>
0<br>
Question 2<br>
RAM stands for 'Reserved Access Main'<br>
Answer 2<br>
Enter a true or false answer:<br>
t<br>
Incorrect!<br>
0</p>
