I'm trying to get back to learning C++. I have a basic code here, and it works but the console application keeps exiting after the loop, how can I prevent the application from exiting?
int iCounter = 0;
std::cout << "How many times to loop?" << std::endl;
std::cin >> iNumber;
if ((iNumber) && (iNumber < 10000))
std::cout << "Looped content" << std::endl;
iCounter = iCounter + 1;
} while (iCounter < iNumber);