#include<stdio.h> #include<conio.h> main() { int a[5],b[5],c[15],i,j,k=0,mid,low=0,median=0; int high=c.length; printf("enter frst array elements"); for(i=0;i<5;i++) scanf("%d",&a[i]); printf("enter second array elements"); for(i=0;i<5;i++) scanf("%d",&b[i]); for(i=0;i<a.length;i++) { for(j=0;j<b.length;j++) { if(a[j]>b[j]) { c[k]=a[i]; i++; } else { c[k]=b[j]; j++; } } k++; } printf("c array"); for(i=0;i<c.length;c++) printf("%d",&c[i]); mid=low+high/2; if(c.length%2==0) median=c[mid]; else median=c[mid]+c[mid-1]/2; printf("median is %d",median); }