c program accept 10 numbers from user and copy odd into odd array and even in to even array
#include"stdio.h"
#include"conio.h"
void main()
{
int no[10],odd[10],even[10],i,j=0,k=0;
clrscr();
printf("Enter any 10 value=");
for(i=0;i<10;i++)
{
printf("\n\nEnter %d number=",i+1);
scanf("%d",&no[i]);
if(no[i]%2==0)
{
even[j++]=no[i];
}
else
{
odd[k++]=no[i];
}
}
printf("\n\n Even number is=");
for(i=0;i<j;i++)
{
printf(" %d",even[i]);
}
printf("\n\n Odd number is=");
for(i=0;i<k;i++)
{
printf(" %d",odd[i]);
}
getch();
}