#include<stdio.h>
main()
{
int x,n[x],i;
printf("Please input the number of integers:");
scanf("%d",&i);
printf("Please input the integers:");
scanf("%d",n);
printf("The elements of the new array are:");
for(x=1;x<=i;x++)
{
if((n[x])%2==1)
printf("%d ",n[x]);
}
for(x=1;x<=i;x++)
{
if((n[x])%2==0)
printf("%d ",n[x]);
}
system("pause");
return 0;
}
初学者。。操蛋了。。
大神帮忙。。。