Lab1 Program
Lab1 Program
Scanner;
public class MatrixAddition {
int N = Integer.parseInt(args[0]);
int[][] matrix1 = new int[N][N];
int[][] matrix2 = new int[N][N];
Scanner scanner = new Scanner(System.in);
// Populate matrix1 and matrix2 with random values for demonstration
// You can modify this part to input values from the user or any other source
// For simplicity, we use random values between 1 and 10