题目是
但是在PTA上面提交结果是错误的,有没有知道为什么的?谢谢!
代码第40行这里修改为: if (num == 1) printf("Payment amount:%.2f",Payment); else printf("Payment amount:%.2f\n",Payment);