In the week0 lecture David gives the following as an example of pseudocode:
let N=0,
for each person in room,
set N=N+1
He said this gets the value of 0 which proves that the algorithm is true.
But I am confused by this example, because in calculus we know that
if N=0,
then N=N+1,
and we know that N=0
and N=0+1=1
which says that this algorithm is false.
Why is the pseudocode algorithm true?