???
#include <stdio.h>
int main()
{
int x,y;
x = 10;
y = -3;
printf("x+y=%d\n", );
printf("x-y=%d\n", );
printf("x*y=%d\n", );
printf("x/y=%d\n", );
printf("x%y=%d\n", );
return 0;
}
#include <stdio.h>
int main()
{
int x,y;
x = 10;
y = -3;
printf("x+y=%d\n", );
printf("x-y=%d\n", );
printf("x*y=%d\n", );
printf("x/y=%d\n", );
printf("x%y=%d\n", );
return 0;
}
2017-09-19
舉報(bào)
2017-09-19
#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;
}
2017-09-19
%在代碼中有特殊的含義,是轉(zhuǎn)換符,如果想要取余,就%%連用
2017-09-19
因?yàn)?在前面有其他意思,所以最后一個(gè)運(yùn)算的時(shí)候要多大一個(gè)%