C++ quiz game exercise - ugly and bad functionality : The code is very ugly and it's supposed to form a simple test, but there are some problems..the point is to create a quiz game with ten quetions and the idea is to choose and pick answers with the arrows and enter. I would love some suggestions or improvements.

How may I recontstruct it in order to proceed to the next question after clicking the Enter button..so far is available only one question and it checks for correct/incorrect and adds a point +1 to the variable "d".

**Knowledge Level: High School**

    #include <iostream>
    #include <stdlib.h>
    #include <conio.h>
    using namespace std;
    int main()
    {   char k;
        int m = 0, d = 0 ;
        const int Up = 72;
        const int Down = 80;
        const int Enter = 13;
        cout<<" 1.Which is the closest planet to the Sun?\n"
            "> A) Mercury\n"
            "  B) Mars\n"
            "  C) Earth\n"
            "  D) Neptune\n";
        do {
            k = getch();
            if(k == Down) {
                m++;
            }
            else if(k == Up) {
                m--;
            }
            if(m>3) {
                m = 0;
            }
            else if(m < 0) {
                m = 3;
            }
            system("CLS");;
            if (m == 0) {
                cout << " 1.What is the closest planet to the Sun?\n"
                     "> A) Mercury\n";
            }
            else {
                cout<<" 1.What is the closest planet to the Sun?\n"
                    "  A) Mercury\n";
            }
            if (m == 1) {
                cout << "> B) Mars\n";
            }
            else {
                cout<< "  B) Mars\n";
            }
            if (m == 2) {
                cout << "> C) Earth\n";
            }
            else {
                cout<< "  C) Earth\n";
            }
            if (m == 3) {
                cout << "> D) Neptune\n\n";
            }
            else {
                cout<< "  D) Neptune\n\n";
            }
        } while (k != Enter);
        if (m==0) {
            d++;
        }
    }

Thanks in advance,

Regards,

Dimitur.

