Help! I don't understand why the average is right, but the total score is wrong

CSDN Q & A 2022-05-15 04:34:38 阅读数:314

helpdonunderstandaverageright

save ! What's wrong with the program
Show me you're bald ..
p1 Is the problem
p2 p3 It's my broken program
p4 Is the result of the run

img

img

img

img




Take the answer :

Because you will your c[j] Define a int type , Then you output it by outputting floating-point numbers ("%.2f"), So it's wrong

By the way, I remind you :
You just put your scores in order , Your name and other contents are not sorted under the same conditions , The result is wrong


版权声明:本文为[CSDN Q & A]所创,转载请带上原文链接,感谢。 https://primo.wiki/2022/131/202205042012343103.html