Professional Documents
Culture Documents
1. Write a C++ program that creates a class matrix to represent 22 matrices. Create a constructor to initialize it to
identity matrix. Create two objects of the class and take the elements of matrix as input from user. The user
should be given the option to perform either addition or multiplication of the matrices.
2. Write a program to calculate the values of nCr and nPr. Here the values of n and r should be entered by the user.