--Write a program to find wether a given year is a leap year or not.
year = io.read("*n")
if(year%400==0 or year%4==0 and year%100~=0)
then
    print(year," is a leap year")
else
    print(year," is not a 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: