TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Leap year Program in java
Alagunila Meganathan
Aug 02
2016
Code
473
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
Leapyear.rar
class
Leapyear
{
public
static
void
main(String[] args)
{
int
n=
2000
;
if
(n%
4
==
0
){
System.out.println(
"The given year is a leap year"
);
}
else
{
System.out.println(
"This is not a leap year"
);
}
}
}
Java