用%2取余计算确定是否是奇数。
includevoid main(){int i,num[10];for(i=0;i<10;i++){printf("请输入第%d个数:",(i+1));scanf("%d",num[i]);}printf("删除奇数后的数组为:");for(i=0;i<10;i++){if(num[i]%2==0){printf("%d,"num[i]);}}}