Created
March 26, 2020 13:28
-
-
Save olumidayy/2eefb16222e8bbec7979c4111ffa6b11 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
void main() { | |
print(isLeapyear(1900)); | |
} | |
bool isLeapyear(year){ | |
if(year % 4 != 0){ | |
return false; | |
}else if(year % 100 == 0 && year % 400 != 0){ | |
return false; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment