RosettaCodeData/Task/Leap-year/Lua/leap-year.lua

4 lines
82 B
Lua
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
function isLeapYear(year)
return year%4==0 and (year%100~=0 or year%400==0)
end