[Solved] C programming code error


These:

scanf("%i", y[i][j]);
scanf("%i", d[i]);

needs to be:

scanf("%i", &y[i][j]);
scanf("%i", &d[i]);

as %i in the scanf expects an int*(address of the variable), not an int(value of the variable).


Another problem is that you do division by zero here:

inv[i][j] = co[i][j] / D;

when D is zero.

solved C programming code error