• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Assignment 3

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys
I can't seem to get my head round the logic behind assignment Java3(Leap).
This is how I understand it:
[i]A particular year is considered to be a leap year if:
it is divisible by 4; but is not divisible by 400 and 100.[i]
Could some one tell me if I've got the right idea or if not please correct me.
confused: confused:
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You want to post this in the Cattle Drive forum; that's what it's for. I'll move it there now...
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A year is always a leap year if it is divisible by 400. A year is also a leap year if it is divisible by 4, but not divisible by 100.
Matthew Phillips
 
Eviano Afiemo
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm sorry, I thought that's where I posted to.
Thanks Matthew...
[This message has been edited by Eviano Afiemo (edited April 03, 2001).]
reply
    Bookmark Topic Watch Topic
  • New Topic