Why does this loop turn out negatives?

Printable View