When I run the code in the stdin line the program gives me an exception. How to solve it so the program works?
static double read_matrix(double matrix[][]) {