lc = int ( input ( '输入路程:' )) |
sj = int ( input ( '输入等待时间:' )) |
if lc> = 10 : |
fy = 6 + ( 10 - 3 ) * 1.8 + (lc - 10 ) * 1.8 * 1.5 |
else : |
if lc> 3 : |
fy = 6 + (lc - 3 ) * 1.8 |
else : |
fy = 6 |
fy = fy + (sj / 3 ) * 1 |
print ( '车费是:' , '%10.2f' % fy) |
|
初级程序员
by: 帅哥 发表于:2021-03-05 19:50:48 顶(1) | 踩(0) 回复
沙发
666
沙发
666
回复评论