#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 );你后面的除号打错了,应该是这样printf("x/y=%d\n", x/y );
x/y的除号写错了,应该是x\y
说白了你把x/y写成了x\y。
算除法的那一行错了