Code editor: Upload Download Select main => chess(5,7,Z), print_mat(Z). chess(H,W,X) => X = new_array(H,W), foreach(I in 1..H, J in 1..W) X[I,J] = (I+J) mod 2 end. print_mat(X) => foreach(L in X) println(L) end. Developed by AG Silva • Powered by CodeMirror