Project

Coding Basics

1.

will create 1x5 matix and store and display the given values in matrix named A as the output

2.

will create 5x1 matrix and store and display the given values in matrix named B as the output

3.

Does not display any output since A is a 1x5 matrix and B\' is also a 1x5 matrix whose matrix multiplication is not possible

4.

displays a 5x5 matrix as C which is solution to the matrix multiplication of B and A matrix

5.

Displays the values of the matrix stored from index 1 upto the last index that is 5 in this case

6.

displays values stored at the indices from 1 to 2

7.

error since B has only one column,3rd column cannot be called

8.

Gives output as the value at the index (length of the matrix B minus 2) which is 3 in this case

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.