运行成功,输入错误
#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;
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;
}
2019-06-20
举报