标签:
#include <stdio.h>
int main()
{
int readLen = 0;
scanf("%d",&readLen);
getchar();
while(readLen > 0)
{
int num = -1;
scanf("%d",&num);
getchar();
if(num % 2 != 0)
continue;
int i=1;
for(;i<num;i+=2)
{
printf("%d ",i);
}
printf("\n");
i=2;
for(;i<=num;i+=2)
{
printf("%d ",i);
}
printf("\n");
--readLen;
}
return 0;
标签:
原文地址:http://www.cnblogs.com/sharpfeng/p/5141175.html