We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Add the two matrices given below and find the integers corresponding to , , , , , , , , and :
[1 2 3] [4 5 6] [a b c]
[2 3 4] + [7 8 9] = [d e f]
[1 1 1] [4 5 7] [g h i]
To submit your answer, enter the resultant values of each of the nine integers (i.e., , , , , , , , , and ) on a new line and click Submit Code.
Input Format
There is no input for this challenge; calculate the values of through using the matrices given above.
Output Format
In the text box below, enter the values of each of the nine integers on a new line. You must have a total of nine lines of output and the integers must be printed in order (i.e., , , , , , , , , and , respectively).
Sample Output
1
2
3
4
5
6
7
8
9
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Linear Algebra Foundations #1 - Matrix Addition
You are viewing a single comment's thread. Return to all comments →
Matrix Addition
Add the two matrices given below and find the integers corresponding to , , , , , , , , and :
[1 2 3] [4 5 6] [a b c] [2 3 4] + [7 8 9] = [d e f] [1 1 1] [4 5 7] [g h i] To submit your answer, enter the resultant values of each of the nine integers (i.e., , , , , , , , , and ) on a new line and click Submit Code.
Input Format
There is no input for this challenge; calculate the values of through using the matrices given above.
Output Format
In the text box below, enter the values of each of the nine integers on a new line. You must have a total of nine lines of output and the integers must be printed in order (i.e., , , , , , , , , and , respectively).
Sample Output
1 2 3 4 5 6 7 8 9