Skip to Main Content
Programming and Data Structures
book

Programming and Data Structures

by Ashok Kamthane
August 2009
Intermediate to advanced content levelIntermediate to advanced
604 pages
21h 39m
English
Pearson India
Content preview from Programming and Data Structures
226 Programming and Data Structures
I
getchQ;
I
o u m m
Enter Order of Matrix A & B up to 10 x 10:3 3
Enter Elements of Matrix of A :
4 58
2 9 8
2 9 4
Enter Elements of Matrix of B :
1 3 5
0 5 4
6 7 2
Matrix Multiplication
4 15 40
0 45 32
12 63 8
Explanation This program is same as the last one. With the help of the first two for loops the
elements of the first matrix are entered. In a similar way by using the next two for loops the elements
of the second matrix are entered. The multiplication is performed in the last two for loops. In this
program multiplication of the corresponding elements of the two matrices are performed.
7.32 Write a program ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Data Structures and Algorithms

Learning Data Structures and Algorithms

Rod Stephens
Data Structures and Algorithms in C++, Second Edition

Data Structures and Algorithms in C++, Second Edition

Michael T. Goodrich, Roberto Tamassia, David M. Mount

Publisher Resources

ISBN: 9789332506343