If I comment `i++` in if loop the while loop shall run and at least print `0,1,2,3`. But, instead, it outputs the runtime exceeded in C++ Shell. I didn't understand why?

```cpp
#include <iostream>
using namespace std;

int main() {
   int i = 0;
   while (i < 10) {
     if (i == 4) {
     //   i++;
       continue;
     }
     cout << i << "\n";
     i++;
   } 
   return 0;
}

```