C program to find median

C program to find median

Input:

Enter the number of elements in the array:
6
Enter the elements of the array:
1 2 3 4 5 6

Output:

The median of the array is 3

Implementation: