Array Programs

1.Input and display array elements
Write a program to input and display the elements of an array.

2.Find maximum and minimum in an array
Write a program to find the largest and smallest elements in an array.

3.Sum of all elements
Write a program to calculate the sum of all elements in an array.

4.Search an element in array
Write a program to search for a specific value in an array (linear search).

5.Count even and odd elements
Write a program to count how many even and odd numbers are in an array.

6.Reverse an array
Write a program to reverse the elements of an array.

7.Copy one array to another
Write a program to copy the contents of one array into another.

8.Sort an array
Write a program to sort the elements of an array in ascending order.

9.Merge two arrays
Write a program to merge two arrays into a third array.

10.2D array: Input and display a matrix
Write a program to input and display a 2D matrix.