I am new to C++, and wanted to test my knowledge in while loops, I use MS Visual Studios 2019, and created this code
int main() {
int i = 12;
while (i > 10) {
cout << i;
i++;
}
return 0;
}
When I run this, I am met with a seemingly infinite line of numbers that continues to run. I tried using this on w3schools IDE and it prints out a long string. I am aware ints are up to 2,147,483,647 yet it doesnt end there, or even have it in there. Could someone explain to me what happened?