Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    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.


    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.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Thanked 2,224 Times in 2,211 Posts
    Welcome to this forum
    Please read the rules,
    1.5) No homework assignments - Do not post your entire homework assignment and request that other members do it for you. This is considered cheating, and your thread may even be used by your school to prove your guilt. Now, you may ask for advice or help on a specific aspect of your assignment that you're having trouble with. Use common sense as far as what's acceptable in terms of soliciting help with homework assignments.
    And also note that javascript is not Java
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts