While(), Example
sets x to 0. Since 0 is not equal to 2, x != 2 evaluates to true;
is executed, making x equal 1. We return to the top of while condition. x now is 1 not equal to 2. So x is increased to 2. Now x != 2 is false. The loop terminates. The printf prints out