📅  最后修改于: 2022-03-11 14:46:36.975000             🧑  作者: Mango
hrs = input("Enter Hours:")
h = float(hrs)
rph=float(input("Enter rate per hours:"))
if hrs>40:
print (40*rph +(h-40)*rph*1.5)
else:
print(h*rph)