Results 1 to 2 of 2
  1. #1
    via_arjuna79 is offline Member
    Join Date
    Jul 2009
    Posts
    1
    Rep Power
    0

    Default somebody can help me?

    any body can help me, i dont know how to settle my problem.
    this question is

    a year 366 days called a leap year. a year is leap year if it is divisible by 4 (for example 1980). However, since the introduction of the gregorian calender on october 15, 1582 a year is not a leap year if it is divisible by 100 (for example 1900); however,it ia s leap year if it is divisible by 400 (for example 2000).
    somebody can help me how to write a program that asks the user for a year and computes whether that year is a leap year. Implement method boolean isleapyear().

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

    Default

    Java Code:
    check is divided by 4
      then check is divided by 100
        then check is divided by 400
          xxx
      xxx

Posting Permissions

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