Leap year hint

  • if a year is not divisible by 4, February has 28 days
  • Use to internet to research about years that are multiples of a 100
  • The % operator to determine if something is divisible. For example if x % 5 == 0, then x is divisible by 5


This topic: CenterForComputing > WebHome > Syllabi > CSC121SylF2023 > CSC121F2023Lab04 > CSC121F2023Lab04Hint2
Topic revision: r1 - 2023-06-19 - cathybareiss
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback