23.
Write a program to Delete Duplicate
Elements from an Array 31. Write a program to Sort an array in
Array = {10, 10, 20, 20, 30} ascending order using Selection
After Remove Duplicate Array Elements = {10, Sample Output
20, 30 } Array = {2, 65, 23, 13, 18, 30, 46, 17, 52, 78}
24. Write a program to Print Unique Elements Sorted Array in Ascending Order = 2 13 17 18
in Array 23 30 46 52 65 78
Array = {10, 20, 40, 20, 10} 32. Write a program to Sort an array in
Display Array Unique Elements = {10, 20, 40 } descending order using bubble sort
25. Write a program to find the second Sample Output
smallest element in an array Array = {2, 65, 23, 13, 18, 30, 46, 17, 52, 78}
Array = {10, 20, 5, 2, 30} Sorted Array in Descending Order = 78 65 52
Second Smallest Element = 5 46 30 23 18 17 13 2
26. Write a program that identifies the Even
elements in two arrays and creates a third
array with those elements
First Array = {1, 2, 3, 4, 5}
Second Array = {6, 7, 8, 9, 10}
Even Element Store in Third Array = {2, 4, 6, 8,
10}
27. Write a program that identifies the Odd
elements in two arrays and creates a third
array with those elements
Sample Output
First Array = {1, 2, 3, 4, 5}
Second Array = {6, 7, 8, 9, 10}
Odd Element Store in Third Array = {1, 3, 5, 7,
9}
28. Write a program to find the common
elements between two arrays of integers
Sample Output
First Array = {10, 20, 30, 40, 50}
Second Array = {10, 30, 60, 50, 70}
Common Array Elements = {10, 30, 50}
29. Write a program to find the second
Largest element in an array
Sample Output
Array = {10, 20, 30, 40, 50}
Second Largest Element = 40
30. Write a program to find a missing number
in an array
Sample Output
Array = {1, 2, 4, 5, 6, 7}
Missing Array Number = 3