Created
December 25, 2014 05:06
-
-
Save omiend/0172e63accbae7fd5cc0 to your computer and use it in GitHub Desktop.
うるう年
This file contains 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
object Uruu { | |
def main(args: Array[String]) = { | |
List.range(1983, 2017) foreach { year => | |
println(s"${year} = ${year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)}") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment