MatrixMultiplication
import java.util.Scanner; class MatrixMultiplication { public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out.println( "enter no of rows and columns of the first matrix" ); int rows1 = s.nextInt(); int cols1 = s.nextInt(); System.out.println( "enter no of rows and columns of the second matrix" ); int rows2 = s.nextInt(); int cols2 = s.nextInt(); if (cols1 != rows2) { ...
Comments
Post a Comment