y=io.read("*n")
if(y%400==0)or(y%4==0)and(year%100~=0)
then
    io.write(y," is a leap year.")
    else
        io.write(y," is a not leap year")
end

Embed on website

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