Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
05-03-2008, 11:29 AM #1
- Join Date
- May 2008
- Thanked 0 Times in 0 Posts
loops conditionals problem java! HELP T_T
i always get stuck with this kind of question please help me and answer this problem for me. so that i can use it as a guideline.
THANK YOU ALL
Write a program that reads in a year value and determines if the year is a leap
year or not. Leap years have 29 days in February. A leap year is a year that
is divisible by 4, unless it is also divisible by 100 but not 400. For example,
2003 is not a leap year, since it is not divisible by 4. The year 1900 is not a
leap year as it is divisible by 100, however the year 2000 is a leap year,
because it is divisible by 400 (as well as 100 and 4). Produce an error
message if the year value is less than or equal to 1582, which is the year our
current calendars were adopted.
05-03-2008, 11:43 AM #2
- Join Date
- Mar 2007
- Thanked 2,224 Times in 2,211 Posts
Welcome to this forum
Please read the rules,
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)