4/22/2008

C++中如何判断整除与否?

int main()
{
int a=10,b=3;
if(a%b==0)
printf("能被整除");
else
printf("不能被整除");
}

没有评论: