#include <stdio.h>
int main()
{
int x,y;
x = 10;
y = -3;
printf("x+y=%d\n",10+(-3));
printf("x-y=%d\n",10-(-3));
printf("x*y=%d\n",10*(-3));
printf("x/y=%d\n",(-10)/3);
printf("x%%y=%d\n",(10/3/3));
return 0;
}
#include <stdio.h>
int main()
{
int x,y;
x = 10;
y = -3;
int a = x+y;
int b = x-y;
int c = x*y;
int d = x/y;
int e = x%y;
printf("x+y=%d\n",a);
printf("x-y=%d\n",b);
printf("x*y=%d\n",c);
printf("x/y=%d\n",d);
printf("x%%y=%d\n",e);
return 0;
}
#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;
}