grabbike

 avatar
unknown
plain_text
2 years ago
237 B
1
Indexable
distance=float(input("distance="))
speed=float(input("speed="))
if distance<=2:
    pay1=distance*6000
    print("The pay is", pay1)
else:
    pay2= 12000 + (distance-2)*3500 + (distance/speed)*60*350
    print("The pay is", pay2)