I meant why is boolean true represented as a negative number instead of a positive number. Like in C++ boolean true is represented as 1. But I guess since true is represented by any non-zero integer I can see why -1 works just as good.
When I comment out the sum := sum + i line then my program does say product is 120. I'm still trying to figure this out though. Okay I figured it out. I needed to include another begin and end. I guess those are like nested parentheses.