感觉运行结果都对,就是提交不了……试了很多个例子了,实在找不出哪里有问题😢
else
printf("%d divisible by 2 and 3? 0\n",n);
if((n%2==0)||(n%3==0))
printf("%d divisible by 2 or 3? 1\n",n);
else
printf("%d divisible by 2 or 3? 0\n",n);
if((n%2==0&&n%3!=0)||(n%2!=0&&n%3==0))
printf("%d divisible by 2 or 3,but not both? 1\n",n);
else
printf("%d divisible by 2 or 3,but not both? 0\n",n);
}
return 0;
}