Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create a program to check if the given year is a leap year #2027

Open
visalrotanak opened this issue Feb 20, 2019 · 3 comments · May be fixed by #2029
Open

create a program to check if the given year is a leap year #2027

visalrotanak opened this issue Feb 20, 2019 · 3 comments · May be fixed by #2029

Comments

@visalrotanak
Copy link

No description provided.

@nogarcia
Copy link

And what language would you like that in? I could do it in Javascript but if you have a preference, I'll try my best.

@visalrotanak
Copy link
Author

Yes, please

nogarcia pushed a commit to nogarcia/programming that referenced this issue Feb 27, 2019
@nogarcia nogarcia linked a pull request Feb 27, 2019 that will close this issue
3 tasks
@Sameera1994
Copy link

function isLeapYear() {
if (year % 4 == 0) {
if (year % 100 == 0) {
if (year % 400 == 0) {
return true;
}
else {
return false;
}
}
else {
return true;
}
}
else {
return false;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants