/*判断一个数能否同时被3和5整除*/
#include<stdio.h>
main()
{
int Anmber;
printf("Please input an integer number: \n");
scanf("%d",&Anmber);
if ((Anmber%3==0)&&(Anmber%5==0))
{
printf("The number you entered [%d] can be divisibility by 3 and 5!\n",Anmber);
}
else
{
printf("The number you entered [%d] can not be divisibility by 3 and 5!\n",Anmber);
}
return 0;
}
转载于:https://www.cnblogs.com/AsmLearner/p/3384013.html