The program doesn't make console

i just installed VS code on my linux mint and when i compiled that #include int main(){ int i; std::cout

The program doesn't make console

i just installed VS code on my linux mint and when i compiled that

#include 

int main(){
    int i;
    std::cout << "Program started";
    while(i < 1000000)
    {
        std::cout << i;
    }
    return 0;
}

it created an executable file, but when i run the program, console doesn't open but the program is working, because it exists in system monitor

i tried to find answers, but everyone trying to make a program without a console