Created
August 1, 2019 03:41
-
-
Save DPS0340/42c1792fa2b566ff0af156cb3b55c56b to your computer and use it in GitHub Desktop.
leap year scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (year <- 1999 to 2019 if year % 4 == 0 if ((year % 100 != 0) || (year % 400 == 0))) println(year) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment