Oh, sorry. The range is the while loop in line 30.
If the side is 4 (line 22) then the code loops from 1000 to 9999 via line 30. The hold variable is incremented in line 41, which updates the num_in variable in line 42, which then goes and does it's thing.
I don't get ANY error messages.
In that range (in this case where side=4, from 1000 to 10000) it prints to screen (line 45) all the entries from 1000 to 9999 just like it's supposed to.
But the previous line (line 44) which prints the exact same info to file stops printing to file once it reaches 9884 instead of continuing all the way to 9999. (Oh, just for info sake, the function (mat) is computing the determinant of square matrices.)
And that same fhand.write in line 44, if the side is 2 (meaning it's doing 2x2 matrices from 10 to 99) it doesn't write ANYTHING to file.
If the side is 4 (line 22) then the code loops from 1000 to 9999 via line 30. The hold variable is incremented in line 41, which updates the num_in variable in line 42, which then goes and does it's thing.
I don't get ANY error messages.
In that range (in this case where side=4, from 1000 to 10000) it prints to screen (line 45) all the entries from 1000 to 9999 just like it's supposed to.
But the previous line (line 44) which prints the exact same info to file stops printing to file once it reaches 9884 instead of continuing all the way to 9999. (Oh, just for info sake, the function (mat) is computing the determinant of square matrices.)
And that same fhand.write in line 44, if the side is 2 (meaning it's doing 2x2 matrices from 10 to 99) it doesn't write ANYTHING to file.