ba=io.read("*n")
if(ba>=5000 and ba<10000)
then
    io.write("The amount you have to pay after discount of $500 is ",ba-500)
elseif(ba>=10000 and ba<15000)
    then
        io.write("The amount you have to pay after discount of $750 is ",ba-750)
    elseif(ba>15000)
        then
            io.write("The amount you have to pay after discount of $1000 is ",ba-1000)
        elseif
            print("Please pay the amount ",ba)
            end

Embed on website

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