func is_leap_year(year)
return (year MOD 4) XOR (year MOD 100) XOR (year MOD 400)
MOD is modulo, and XOR is exclusive or.Created at 2012-01-10 21:31:39 | Last updated at 2018-03-28 22:06:57
func is_leap_year(year)
return (year MOD 4) XOR (year MOD 100) XOR (year MOD 400)
MOD is modulo, and XOR is exclusive or.Loading comments
|
|
Back to Tobary book |
| Tobary book - Copyright (C) ZhePlus @ Bit Focus | |
| About |