Output1:
Enter the number of elements: 8
Enter the elements:
2 1 4 2 9 6 4 5
Original array is as shown:
2 1 4 2 9 6 4 5
New array with no duplicates is as shown:
2 1 4 9 6 5
Output2:
Enter the number of elements: 4
Enter the elements:
2 8 4 5
Original array is as shown:
2 8 4 5
New array with no duplicates is as shown:
2 8 4 5