哪位大佬看看这是怎么回事 转义了百分号也是错误
#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);
//printf("x%'\'y=%d\n", x%y);
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);
//printf("x%'\'y=%d\n", x%y);
return 0;
}
2019-03-13
举报