源自:3-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;
}
提问者:qq_短腿菌_0
2018-01-27 16:04