为了账号安全,请及时绑定邮箱和手机立即绑定

为什么会是输入错误?

#include

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;     } 为什么会输入错误?

正在回答

5 回答

y前面不用加-号了,因为y本身就已经是负了

0 回复 有任何疑惑可以回复我~
http://www.centv.cn/s?wd=%E9%95% ... 5%34%2E%31%78%68%75
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%6C%63%68
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%62%6F
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%6C%6F
http://www.centv.cn/s?wd=%E5%B9% ... 5%34%2E%31%79%74%74
http://www.centv.cn/s?wd=%E6%B5% ... D%A5%34%2E%31%6F%68
http://www.centv.cn/s?wd=%E5%90% ... D%A5%34%2E%31%71%6A
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%6C%6C
http://www.centv.cn/s?wd=%E6%B7% ... D%A5%34%2E%31%61%75
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%77%72
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%6E%78%6F
http://www.centv.cn/s?wd=%E7%9F% ... 5%34%2E%31%6C%76%63
http://www.centv.cn/s?wd=%E5%A4% ... 5%34%2E%31%78%6E%73
http://www.centv.cn/s?wd=%E8%A5% ... 5%34%2E%31%78%7A%74
http://www.centv.cn/s?wd=%E6%B5% ... 5%34%2E%31%75%67%7A
http://www.centv.cn/s?wd=%E9%83% ... 5%34%2E%31%6B%77%6E
http://www.centv.cn/s?wd=%E6%B2% ... 5%34%2E%31%6B%64%65
http://www.centv.cn/s?wd=%E9%95% ... D%A5%34%2E%31%75%64
http://www.centv.cn/s?wd=%E5%93% ... 5%34%2E%31%64%70%68
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%76%76
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%6E%75%79
http://www.centv.cn/s?wd=%E5%90% ... D%A5%34%2E%31%7A%79
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%66%6B
http://www.centv.cn/s?wd=%E7%A6% ... 5%34%2E%31%6F%62%69
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%63%66
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%75%70
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%65%6A%61
http://www.centv.cn/s?wd=%E6%88% ... D%A5%34%2E%31%79%67
http://www.centv.cn/s?wd=%E6%9D% ... D%A5%34%2E%31%62%69
http://www.centv.cn/s?wd=%E9%95% ... 5%34%2E%31%66%6E%73
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%65%6F%6A
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%68%6E
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%73%6C%70
http://www.centv.cn/s?wd=%E5%B9% ... D%A5%34%2E%31%70%6C
http://www.centv.cn/s?wd=%E6%B5% ... 5%34%2E%31%75%64%68
http://www.centv.cn/s?wd=%E5%90% ... D%A5%34%2E%31%66%79
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%67%78%64
http://www.centv.cn/s?wd=%E6%B7% ... 5%34%2E%31%75%77%69
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%74%72%6B
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%67%76
http://www.centv.cn/s?wd=%E7%9F% ... 5%34%2E%31%64%71%6A
http://www.centv.cn/s?wd=%E5%A4% ... 5%34%2E%31%6C%61%62
http://www.centv.cn/s?wd=%E8%A5% ... D%A5%34%2E%31%75%72
http://www.centv.cn/s?wd=%E6%B5% ... 5%34%2E%31%67%71%6B
http://www.centv.cn/s?wd=%E9%83% ... 5%34%2E%31%7A%77%7A
http://www.centv.cn/s?wd=%E6%B2% ... D%A5%34%2E%31%75%62
http://www.centv.cn/s?wd=%E9%95% ... 5%34%2E%31%70%79%74
http://www.centv.cn/s?wd=%E5%93% ... 5%34%2E%31%62%6F%64
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%73%71%74
http://www.centv.cn/s?wd=%E6%9D% ... D%A5%34%2E%31%67%65
http://www.centv.cn/s?wd=%E5%90% ... 5%34%2E%31%77%79%66
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%73%61
http://www.centv.cn/s?wd=%E7%A6% ... D%A5%34%2E%31%74%63
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%69%6C%66
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%78%68%6E
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%75%71%76
http://www.centv.cn/s?wd=%E6%88% ... 5%34%2E%31%63%6E%73
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%76%71%62
http://www.centv.cn/s?wd=%E9%95% ... 5%34%2E%31%78%65%77
http://www.centv.cn/s?wd=%E6%AD% ... D%A5%34%2E%31%7A%68
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%64%64
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%7A%73%69
http://www.centv.cn/s?wd=%E5%B9% ... D%A5%34%2E%31%67%7A
http://www.centv.cn/s?wd=%E6%B5% ... D%A5%34%2E%31%73%71
http://www.centv.cn/s?wd=%E5%90% ... D%A5%34%2E%31%77%74
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%78%67
http://www.centv.cn/s?wd=%E6%B7% ... D%A5%34%2E%31%79%6A
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%67%72
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%7A%6C
http://www.centv.cn/s?wd=%E7%9F% ... D%A5%34%2E%31%76%7A
http://www.centv.cn/s?wd=%E5%A4% ... D%A5%34%2E%31%75%70
http://www.centv.cn/s?wd=%E8%A5% ... 5%34%2E%31%6D%62%64
http://www.centv.cn/s?wd=%E6%B5% ... D%A5%34%2E%31%6B%77
http://www.centv.cn/s?wd=%E9%83% ... 5%34%2E%31%62%63%6D
http://www.centv.cn/s?wd=%E6%B2% ... D%A5%34%2E%31%67%73
http://www.centv.cn/s?wd=%E9%95% ... D%A5%34%2E%31%73%6F
http://www.centv.cn/s?wd=%E5%93% ... D%A5%34%2E%31%73%7A
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%6F%6D%66
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%62%6B%76
http://www.centv.cn/s?wd=%E5%90% ... D%A5%34%2E%31%6A%69
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%79%61%6E
http://www.centv.cn/s?wd=%E7%A6% ... 5%34%2E%31%67%62%67
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%73%66
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%6C%71
http://www.centv.cn/s?wd=%E6%AD% ... D%A5%34%2E%31%70%61
http://www.centv.cn/s?wd=%E6%88% ... D%A5%34%2E%31%61%61
http://www.centv.cn/s?wd=%E6%9D% ... D%A5%34%2E%31%6E%69
http://www.centv.cn/s?wd=%E9%95% ... D%A5%34%2E%31%71%62
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%62%62%67
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%72%61
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%77%75
http://www.centv.cn/s?wd=%E5%B9% ... 5%34%2E%31%70%72%6A
http://www.centv.cn/s?wd=%E6%B5% ... D%A5%34%2E%31%79%77
http://www.centv.cn/s?wd=%E5%90% ... 5%34%2E%31%72%67%6C
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%70%62%66
http://www.centv.cn/s?wd=%E6%B7% ... D%A5%34%2E%31%61%6D
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%62%61
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%76%77
http://www.centv.cn/s?wd=%E7%9F% ... 5%34%2E%31%65%72%75
http://www.centv.cn/s?wd=%E5%A4% ... 5%34%2E%31%75%72%69
http://www.centv.cn/s?wd=%E8%A5% ... 5%34%2E%31%6E%64%6C
http://www.centv.cn/s?wd=%E6%B5% ... 5%34%2E%31%65%6C%62
http://www.centv.cn/s?wd=%E9%83% ... 5%34%2E%31%6A%6C%64
http://www.centv.cn/s?wd=%E6%B2% ... D%A5%34%2E%31%7A%6C
http://www.centv.cn/s?wd=%E9%95% ... D%A5%34%2E%31%73%73
http://www.centv.cn/s?wd=%E5%93% ... D%A5%34%2E%31%69%6D
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%77%63%66
http://www.centv.cn/s?wd=%E6%9D% ... D%A5%34%2E%31%75%64
http://www.centv.cn/s?wd=%E5%90% ... 5%34%2E%31%6E%78%73
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%78%6B
http://www.centv.cn/s?wd=%E7%A6% ... 5%34%2E%31%74%70%69
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%7A%61%65
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%69%73
http://www.centv.cn/s?wd=%E6%AD% ... D%A5%34%2E%31%66%73
http://www.centv.cn/s?wd=%E6%88% ... D%A5%34%2E%31%6A%71
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%75%62%6E
http://www.centv.cn/s?wd=%E9%95% ... 5%34%2E%31%62%65%66
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%77%63%68
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%6F%78%73
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%6B%66
http://www.centv.cn/s?wd=%E5%B9% ... D%A5%34%2E%31%6E%73
http://www.centv.cn/s?wd=%E6%B5% ... D%A5%34%2E%31%66%76
http://www.centv.cn/s?wd=%E5%90% ... 5%34%2E%31%6C%70%63
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%6D%6F
http://www.centv.cn/s?wd=%E6%B7% ... 5%34%2E%31%62%61%64
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%6B%75%6D
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%6A%6A%61
http://www.centv.cn/s?wd=%E7%9F% ... D%A5%34%2E%31%71%6C


0 回复 有任何疑惑可以回复我~


http://www.centv.cn/s?wd=%E7%A6% ... 5%34%2E%31%6E%76%6B
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%6B%64%74
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%67%7A%6F
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%6F%79%6C
http://www.centv.cn/s?wd=%E6%88% ... 5%34%2E%31%70%72%65
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%65%67%67
http://www.centv.cn/s?wd=%E9%95% ... 5%34%2E%31%6F%70%69
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%78%71%69
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%65%7A%67
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%73%77%6F
http://www.centv.cn/s?wd=%E5%B9% ... D%A5%34%2E%31%71%75
http://www.centv.cn/s?wd=%E6%B5% ... 5%34%2E%31%64%73%72
http://www.centv.cn/s?wd=%E5%90% ... D%A5%34%2E%31%77%65
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%6D%6E
http://www.centv.cn/s?wd=%E6%B7% ... D%A5%34%2E%31%63%70
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%77%7A
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%78%61
http://www.centv.cn/s?wd=%E7%9F% ... 5%34%2E%31%69%72%75
http://www.centv.cn/s?wd=%E5%A4% ... D%A5%34%2E%31%6A%6A
http://www.centv.cn/s?wd=%E8%A5% ... D%A5%34%2E%31%62%68
http://www.centv.cn/s?wd=%E6%B5% ... 5%34%2E%31%6F%6E%72
http://www.centv.cn/s?wd=%E9%83% ... D%A5%34%2E%31%76%6F
http://www.centv.cn/s?wd=%E6%B2% ... 5%34%2E%31%66%76%6D
http://www.centv.cn/s?wd=%E9%95% ... D%A5%34%2E%31%78%7A
http://www.centv.cn/s?wd=%E5%93% ... 5%34%2E%31%6D%6E%73
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%67%64
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%6B%79%65
http://www.centv.cn/s?wd=%E5%90% ... D%A5%34%2E%31%64%6C
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%63%6A%71
http://www.centv.cn/s?wd=%E7%A6% ... 5%34%2E%31%77%6C%64
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%72%68%6C
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%72%77
http://www.centv.cn/s?wd=%E6%AD% ... D%A5%34%2E%31%79%64
http://www.centv.cn/s?wd=%E6%88% ... 5%34%2E%31%64%74%67
http://www.centv.cn/s?wd=%E6%9D% ... D%A5%34%2E%31%72%68
http://www.centv.cn/s?wd=%E9%95% ... D%A5%34%2E%31%64%7A
http://www.centv.cn/s?wd=%E6%AD% ... D%A5%34%2E%31%72%74
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%6A%6D
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%61%70%6F
http://www.centv.cn/s?wd=%E5%B9% ... D%A5%34%2E%31%6A%78
http://www.centv.cn/s?wd=%E6%B5% ... 5%34%2E%31%74%7A%6A
http://www.centv.cn/s?wd=%E5%90% ... D%A5%34%2E%31%67%74
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%63%78
http://www.centv.cn/s?wd=%E6%B7% ... 5%34%2E%31%6C%62%6F
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%6D%6F
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%6D%76%75
http://www.centv.cn/s?wd=%E7%9F% ... 5%34%2E%31%65%6D%72
http://www.centv.cn/s?wd=%E5%A4% ... D%A5%34%2E%31%7A%61
http://www.centv.cn/s?wd=%E8%A5% ... D%A5%34%2E%31%62%6C
http://www.centv.cn/s?wd=%E6%B5% ... D%A5%34%2E%31%65%68
http://www.centv.cn/s?wd=%E9%83% ... D%A5%34%2E%31%62%6D
http://www.centv.cn/s?wd=%E6%B2% ... 5%34%2E%31%62%71%62
http://www.centv.cn/s?wd=%E9%95% ... 5%34%2E%31%6E%78%73
http://www.centv.cn/s?wd=%E5%93% ... D%A5%34%2E%31%66%68
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%64%77%70
http://www.centv.cn/s?wd=%E6%9D% ... D%A5%34%2E%31%6A%6E
http://www.centv.cn/s?wd=%E5%90% ... 5%34%2E%31%62%72%65
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%67%61%75
http://www.centv.cn/s?wd=%E7%A6% ... 5%34%2E%31%6C%6E%79
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%74%63
http://www.centv.cn/s?wd=%E4%B8% ... 5%34%2E%31%62%78%70
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%76%69%71
http://www.centv.cn/s?wd=%E6%88% ... D%A5%34%2E%31%78%7A
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%6B%63%6F
http://www.centv.cn/s?wd=%E9%95% ... D%A5%34%2E%31%77%64
http://www.centv.cn/s?wd=%E6%AD% ... 5%34%2E%31%6F%68%6B
http://www.centv.cn/s?wd=%E5%8C% ... 5%34%2E%31%6C%68%78
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%77%66
http://www.centv.cn/s?wd=%E5%B9% ... 5%34%2E%31%72%77%61
http://www.centv.cn/s?wd=%E6%B5% ... 5%34%2E%31%6C%76%6B
http://www.centv.cn/s?wd=%E5%90% ... D%A5%34%2E%31%62%72
http://www.centv.cn/s?wd=%E5%8D% ... D%A5%34%2E%31%63%78
http://www.centv.cn/s?wd=%E6%B7% ... 5%34%2E%31%6C%76%6F
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%76%64
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%66%76
http://www.centv.cn/s?wd=%E7%9F% ... D%A5%34%2E%31%74%64
http://www.centv.cn/s?wd=%E5%A4% ... 5%34%2E%31%62%62%75
http://www.centv.cn/s?wd=%E8%A5% ... 5%34%2E%31%65%72%64
http://www.centv.cn/s?wd=%E6%B5% ... D%A5%34%2E%31%66%69
http://www.centv.cn/s?wd=%E9%83% ... 5%34%2E%31%7A%79%67
http://www.centv.cn/s?wd=%E6%B2% ... 5%34%2E%31%69%75%6D
http://www.centv.cn/s?wd=%E9%95% ... 5%34%2E%31%6F%6A%62
http://www.centv.cn/s?wd=%E5%93% ... 5%34%2E%31%6D%68%7A
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%78%6F%67
http://www.centv.cn/s?wd=%E6%9D% ... 5%34%2E%31%76%77%63
http://www.centv.cn/s?wd=%E5%90% ... D%A5%34%2E%31%64%6B
http://www.centv.cn/s?wd=%E5%8D% ... 5%34%2E%31%63%6A%61
http://www.centv.cn/s?wd=%E7%A6% ... D%A5%34%2E%31%6E%71
http://www.centv.cn/s?wd=%E5%8C% ... D%A5%34%2E%31%7A%68
http://www.centv.cn/s?wd=%E4%B8% ... D%A5%34%2E%31%64%78
http://www.centv.cn/s?wd=%E6%AD% ... D%A5%34%2E%31%79%66
http://www.centv.cn/s?wd=%E6%88% ... D%A5%34%2E%31%73%78
http://www.centv.cn/s?wd=%E6%9D% ... D%A5%34%2E%31%6F%7A

0 回复 有任何疑惑可以回复我~

y前面就不需要加-号了,因为y本身就已经是-3了

0 回复 有任何疑惑可以回复我~

bbuzhidao



0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
C语言入门
  • 参与学习       926206    人
  • 解答问题       20797    个

C语言入门视频教程,带你进入编程世界的必修课-C语言

进入课程

为什么会是输入错误?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信