Home > Back-end >  The problem how to do?
The problem how to do?

Time:06-09

.

CodePudding user response:

On the computer to run down the bai

CodePudding user response:

The value of x is 1, the value of y is 0, the final output is zero

CodePudding user response:

In environmental input code compiler to run, such as the x, y all print once, and then learn the running status ~ according to the results

CodePudding user response:

You can throw the garbage on the book,
Printf (" % d \ n ", d * y);
This fundamental, format for "% d", parameter is double, the result is uncertain,

CodePudding user response:

Give you a detailed answer:
Int x=1.2; Because it is an int type, so I is equal to 1,
(x + 3.8)/5.0; The symbols/is take, if y is of type double, is equal to 0.96,
Only blame is type int y, so can only be equal to 0.
And when you finally output, and % d, this was strangled, the final result can only be 0

CodePudding user response:

reference 4 floor mymtom response:
this textbook can throw trash can,
Printf (" % d \ n ", d * y);
This fundamental, format for "% d", parameter is double, the result is uncertain,

Title was wrong.

CodePudding user response:


I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related