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

SOFTWARE

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

Unit-1 Foundations of Software Systems and Blockchain

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

digital marketing ppt-u1

Unit-III: Cascading Style Sheets (CSS) - HTML

Unit-V: Image Manipulations, Audio and Video & Introduction to JavaScript

Unit-II: HTML Coding Standards & Elements

HTML Degree Unit-1

1) Information and Communication Technology ICT-unit-1