#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 ); 这里"x%y=%d\n"中的"x%y"====>"x%%y"就行了,需要转义的