JAVA-Record-02)AIM: Write a Java program to calculate multiplication of 2 matrices.

 02)AIM: 

Write a Java program to calculate multiplication of 2 matrices.

 Matrix Multiplication Algorithm:

  1. Start
  2. Declare variables and initialize necessary variables
  3. Enter the element of matrices by row wise using loops
  4. Check the number of rows and column of first and second matrices
  5. If number of rows of first matrix is equal to the number of columns of second matrix, go to step 6. Otherwise, print matrix multiplication is not possible and go to step 3.
  6. Multiply the matrices using nested loops.
  7. Print the product in matrix form as console output.
  8. Stop

 Flow chart:

Matrix Multiplication Flowchart

 Code:02

Output:01

Output:02


 

 

 

 

 

 

 

Comments

Popular posts from this blog

digital marketing ppt-u1

SOFTWARE

cn lab

Computer Operations and Performing - D L Unit-1-1

DBMS Degree Lab Records

DS-Record-mca-04) write a program for evaluating a given postfix expression using stack.

Unit-1 Foundations of Software Systems and Blockchain

Access the Internet to Browse Infromation & E-Mail Operation- D L Unit-2-1

6)what are the various service of internet and protocols ICT-unit-1

Unit 2: Foundations of Ownership, Security Related Concepts in Blockchain