#2374. 【例16.3】 收费
【例16.3】 收费
说明
乘坐飞机时,当乘客行李小于等于$20$公斤时,按每公斤$1.68$元收费,大于$20$公斤时,按每公斤$1.98$元收费,编程计算收费(保留$2$位小数)。输入格式
行李重量。输出格式
费用(保留$2$位小数)。20.00
33.60
20.00
33.60
By signing up a 津桥OJ universal account, you can submit code and join discussions in all online judging services provided by us.