You are viewing a single comment's thread. Return to all comments →
Java:
public class Solution { public static void main(String[] args) { int[][] M = {{1, 2, 3}, {2, 3, 4}, {1, 1, 1}}; int[][] N = {{4, 5, 6}, {7, 8, 9}, {4, 5, 0}}; for (int i = 0; i < M.length; i++) { for (int j = 0; j < M[i].length; j++) { System.out.println(M[i][j] - N[i][j]); } } } }
Seems like cookies are disabled on this browser, please enable them to open this website
Linear Algebra Foundations #2 - Matrix Subtraction
You are viewing a single comment's thread. Return to all comments →
Java: