Case 1: Enter the number of element in dataset: 10 Enter 1th element: 9 Enter 2th element: 5 Enter 3th element: 3 Enter 4th element: 1 Enter 5th element: 6 Enter 6th element: 2 Enter 7th element: 0 Enter 8th element: 7 Enter 9th element: 4 Enter 10th element: 8 Enter the number of element nearest to the median required: 4 The K element nearest to the median are: 4 5 3 6 Case 2: Enter the number of element in dataset: 9 Enter 1th element: 6 Enter 2th element: 2 Enter 3th element: 8 Enter 4th element: 3 Enter 5th element: 1 Enter 6th element: 7 Enter 7th element: 5 Enter 8th element: 4 Enter 9th element: 9 Enter the number of element nearest to the median required: 4 The K element nearest to the median are: 5 4 6 3