%求余默认为打印函数了
#include <stdio.h>
int main()
{
int x,y;
x = 10;
y = -3;
printf("x+y=%d\n",x+y );
printf("x-y=%d\n",x-y );
printf("x*y=%d\n",x*y );
printf("x/y=%d\n",x/y );
printf("x%y=%d\n",x%y );
return 0;
}
printf("x%y=%d\n",x%y ); 这一句%y ,将%默认为打印函数设置了。通不过