@Ctrl major props on such a detailed explanation breh , i literally spent the last 3 hours rereading your answer but it finally made sense to me, so lets say the program were to keep "counting" people the next set past 4 would be
4=4+1 correct? which would "equal" 5, which would be our next "0"
took me a minute to understand that 0 aint per se actually the numerical zero but could equal a "get set" command if need be
dunno if i even said that right
No problem.
Correct, for N = N + 1, on the next iteration, 5 would become the new value of N.
And yeah, that 0 is just a value that we deliberately set for N before doing anything else.
Its value is a numerical 0, but it can be updated to a new value when we use the assignment operator ("=").
It might be easier to visualize at first if we keep the variable name on the left, and substitute its value on the right.
So when N is 0, instead of writing 0 = 0 + 1 or N = N + 1, we can write it out as:
N = 0 + 1 (N gets set to the value of 0 + 1)
N = 1 (The right side is simplified so that we now have: N gets set to 1)
And then
N = 1 + 1
N = 2
N = 2 + 1
N = 3
N = 3 + 1
N = 4
Hopefully that clears that up for anyone else who may have been having trouble.