Array is: [1,9,4,3,6]
Median is: 4
-Here we just try to find the middle number of the array.
printf("Enter number of elements in array\n");
printf("Enter %d number in array\n",n);
//input in array
printf("Median is %d",a[median]);
Enter number of elements in array
Enter 5 number in array
1 2 3 4 5
Median is 3
-In this program, we take an input in array, then median element are found by the a[n/2].