2 回答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;
2 回答#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;
6 回答#include <stdio.h> int main() { int a,s,d,f,g; a=x+y; s=x-y; d=x*y;f=x/y;g=x%y;printf("x+y=%d\n", a);printf("x-y=%d\n", s);printf("x*y=%d\n", d ); printf("x/y=%d\n", f);printf("x%y=%d\n", g);return 0;}