I'm having some trouble with 'The While Loop'
So, I'm currently going through the C# tutorial still, and I came across a question on 'The While Loop' lesson that I didn't get. Here's the question: How many times will the following loop execute? int x = 1; while (x++ < 5) { if (x % 2 == 0) x+=2 } So, first off, why would the code execute in a visable way if there isn't a Console.WriteLine (num)? Second off, assuming it would execute anyways; Would the while not read x and then add 1 afterwards, since x is a postfix? Would that not make it 3 loops in total then, or am I incorrect? P.S.: This community has been super helpful so far and put up with my dumb questions, so thanks for that. I'm in love with this app frankly, so huge props to both the mods and devs that keep this running; the lessons are extremely helpful and the community is 👌