hr=io.read("*n")
if(hr<10)
then
    io.write("You will be charged $10 ")
elseif(hr>=10 and<20)
    then
        io.write("You will be charged $20 ")
    elseif(hr>=20 and<30)
        then
            io.write("You will be charged $30")
        elseif(hr>=30 and<40)
            then
                io.write("You will be charged $40")
                end

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: