怎么我第五行前面几行直接输入的数字,第五行输入的是printf("x%%y=%d\n",x%y);都过了?
%d是整数,后面的x+y是指要输出的值
#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;
}