500钞票:0 100钞票:0 很抱歉问了太多问题。First problem has fix, I have found another problem when input 144000 ฿. It will show like "Amount of banknotes 1000 banknote : -45 500 banknote : 30 100 banknote : 300"How can I fix it, I want it to show "Amount of banknotes 1000 banknote : 0 500 banknote : 0 100 banknote : 0"Sorry for asking too many question. 引用:它会显示为纸币数量 1000钞票:-45 500钞票:30 100钞票:300 如何修复它,我想要它显示钞票数量 1000钞票:0 500钞票:0 100钞票:0It will show like "Amount of banknotes1000 banknote : -45500 banknote : 30100 banknote : 300"How can I fix it, I want it to show "Amount of banknotes1000 banknote : 0500 banknote : 0100 banknote : 0" 你的问题是,当你计算你需要的钞票数量时,你忘记检查你是否有足够的。 正如已经建议的那样,使用调试器来查看你的代码在做什么。Your problem is that when you calculate the number of banknotes you need, you forget to check that you have enough of each kind.As already adviced, use the debugger to see what your code is doing. 这篇关于我有“else if”的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-14 21:04