#include <stdio.h>
#include<stdlib.h>
int main()
{
int a[20]={1,3,5,7,9,11,13,15,17,19,2,4,6,8,10};
int b[20]={0};
int i=0,j;
int i1=0;
while(a[i]!=0||a[i-1]!=0)
{
if(i>9&&i<=14)
{
if(a[i]%2==0) /*这行可以不要*/ /*因有序排列*/
printf("%d ",a[i]);
b[i1++]=a[i];
}
else if(i>14)
{
for(j=0;j<=9;j++)
{
printf("%d ",a[j]);
b[i1++]=a[j];
}
}
i++;
}
i=0;
printf("\n");
while(b[i]!=0) printf("%d ",b[i++]);
return 0;
}