Sunday, December 31, 2017

WAP to perform basic operations in a 2D array (using user defined functions)

Aim : Write a menu driven program to show following operations in a 2-D array (using user defined functions)

Menu
1. Adding two 2-d arrays
2. Subtracting two 2-d arrays
3. Multiplying two 2-d arrays
4. Check whether two 2-d arrays are equivalent or not
5. Display upper triangular matrix
6. Display lower triangular matrix
7. Display and find sum of diagonal elements of a 2-d array
8. Display and find the row-wise sum of a 2-d array
9. Display and find the column-wise sum of a 2-d array
10. Quit

CODE:
OUTPUT:

No comments:

Post a Comment