text: //Separate odd and even integers in separate arrays
  #include <stdio.h>
  
  void main()
   {
      int arr1[10], arr2[10], arr3[10];
      int i,j=0,k=0,n;
  
  
         printf("Input the number of elements to be stored in the array :");
         scanf("%d",&n);
  
         printf("Input %d elements in the array :\n",n);
         for(i=0;i<n;i++)
              {
  	      printf("element - %d : ",i);
  	      scanf("%d",&arr1[i]);
  	    }
  
      for(i=0;i<n;i++)
      {
  	if (arr1[i]%2 == 0)
  	{
  	   arr2[i] = arr1[j];
  	   i++;
  	}
  	else
  	{
  	   arr3[i] = arr1[k];
  	   i++;
  	}
      }
  
      printf("\nThe Even elements are : \n");
      for(i=0;i<j;i++)
      {
  	printf("%d ",arr2[i]);
      }
  
      printf("\nThe Odd elements are :\n");
      for(i=0;i<k;i++)
      {
  	printf("%d ", arr3[i]);
      }
      printf("\n\n");
   }
  