Hi everyone, first time poster here, i'm just having a bit of trouble understanding one small part of this puzzle:
So this puzzle compiles an array of triangles and calculates the area for each, but my question is, how does it know how to calculate the area when the formula is at the very end? Wouldn't it have to be at the beginning of the while loop for it to be taken into account? I've actually reached up to the end of Chapter 5 in the book, hoping that things would start to become more clear but i keep running in to similar confusion where code at the end of my program affects portions at the beginning. Any help would be greatly appreciated!