#include <stdio.h>
int main()
{
int x,y,J1,J2,J3,J4,J5;
x = 10;
y = -3;
J1 = x+y;
J2 = x-y;
J3 = x*y;
J4 = x/y;
J5 = x%y;
printf("x+y=%d\n",J1);
printf("x-y=%d\n",J2);
printf("x*y=%d\n",J3);
printf("x/y=%d\n",J4);
printf("x%y=%d\n",J5);
return 0;
}
不是输出项不存在吗~求解
慕课网的模板问题吧,代码是正确的。