Help with quiz program

I am writing a quiz program for fun/studying. It's supposed..

1 - Ask for how many questions you need.
2 - Ask for the questions you want to ask.
3 - Ask for the answer to those questions.
4 - Randomly ask a question from the ones you provided. Compare the answer you give to the correct answer, tell you if you were right or wrong, and count how many you got right and wrong.
5 - Ask if you want another question.

All is working well, except once you answer the first question when it asks if you want another question it's adding the current question into it and not letting you answer if you want to have another question or not.