LAB 6- ARRAY
In this lab students will learn about 1-D array, 2-D array and function in array.
- WAP to sort an array in ascending or descending order.
- WAP to find the largest element in an array .
- WAP to read n numbers from the keyboard and store them in an array. Add even numbers and odd numbers separately and display the result.
- WAP to define three user defined function for reading , processing and displaying of 2*3 matrices . Read the matrix in Read() function, multiply the matrix in Multiply() function and display the matrix in Display() function.
- WAP to read the order of a square matrix and its elements from the keyboard. Find the sum of diagonal elements of the matrix.