Write a program that can do the following:

addition of two matrices .

subtraction of two matrices.

multiplication of a matrix by a scalar.

multiplication of a matrix by a matrix.

Please read our rules concerning homework. We won't do it for you, and require some proof of effort before providing help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.