Guest User

Untitled

a guest
Oct 18th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. if 0 == y%4 then
  2.     if 0 == y%100 then
  3.         if 0 == y%400 then
  4.             io.write(y, " is a leap year");
  5.         else
  6.             io.write(y, " is not a leap year");
  7.         end
  8.     else
  9.         io.write(y, " is a leap year");
  10.     end
  11. else
  12.     io.write(y, " is not a leap year");
  13. end
Add Comment
Please, Sign In to add comment