Data Structures and Algorithms Practical 1 - Array related problems
Problems given in class
- Print all the elements in an array.
- Print the first and last elements of an array.
- Print the middle element of the array.
- Print the double of all elements of an array.
- Find the negative element in an array.
- Print all the elements in odd position in array.
- Print all the elements in even position in array.
- Print the array in reverse.
- Find the sum and product of all the elements of a given array.
- Print the smallest and largest element of an array.
Bonus Add all of these options to a switch case.