Answers for "from java to python"

0

java to python

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)
Posted by: Guest on July-28-2021
0

java to python

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)
Posted by: Guest on July-28-2021

Browse Popular Code Answers by Language