Having trouble understanding the logic of this infinite loop

Viewed 118

What makes this an infinite loop? Shouldn't n reach 5 and terminate the loop?

int main()
{

    int n = 1;
    while (n <= 5)

    cout << n ;
    n++;

}
3 Answers
Related