X Tutup
//Program to multiply two square matrices using Strassen's Multiplication import java.util.*; public class StrassensMultiplication { public static void main(String[] args) { int n,m; Scanner sc = new Scanner(System.in); System.out.println("Enter the number of rows and columns of the first matrix : "); n = sc.nextInt(); System.out.println("Enter the number of rows and columns of the second matrix : "); m = sc.nextInt(); int[][] a = new int[n][n]; int[][] b = new int[m][m]; int[][] c = new int[2][2]; int i, j, m1, m2, m3, m4, m5, m6, m7; //Taking input from the user System.out.println("Enter all the elemens of the first matrix : "); for(i=0; i
X Tutup