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++;
}
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++;
}