Question 8: (float)(a+b)/2+(int)x%(int)y means that the former part is 2.5 floating-point type, and the latter part is 3 divided by 2 to find the remainder. Because it is an integer, the decimal point is omitted! ! So it is 3.5;
Eleventh question: short type overflow, change the number of dots, the boundary of unsigned integer should be 65535;
If the output value is incorrect, there is something wrong with the operating system! ! !
Remember: "/"means divisibility, and "%"means divisibility of two integers! ! ! ! !
Jingmen, a place to give people away.
Puyuan (Ming)
The Yangtze River is windy and the sails are light, and the