I have written a program to calculate the determinant of a 3x3 matrix. It all works and the values are read from a file correctly, but when i try and calculate something it always give 0. E.g. it prints a=1, b=2 a*b=0.
I dont want to post my actual program as it's for an assignment and im worried ill get in trouble! but does anyone have any ideas what could be causing it?