there are two ways to increment a variable.
x++ and ++x
reading this : https://www.arduino.cc/en/Reference/Increment
it says that
++x will increment x by 1 and show that value. but x++ will show the initial value of x ..
if that is the case, then when, or where in the loop, does x become incremented ?