grabbike

mail@pastecode.io avatar
unknown
plain_text
a year ago
237 B
1
Indexable
Never
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)