May-02-2019, 10:39 AM
s is the sum of the products in each row in a. Since it is for each row, you need to reset it at the start of each row. The i loop goes through the rows, so it should be reset at the start of each i loop.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures