The output of the code seems inconsistent.

Printable View