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

e-com sem-3

e com partical

unit-1 E- Commerce

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

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

Unit-II: HTML Coding Standards & Elements

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

Unit 3: Hash Functions, Cryptography, and Digital Signatures in Blockchain

digital marketing ppt-u1