"""
    Darin Brezeale
    August 22, 2010

    prompt the user for a year, then determine if it is a leap year
"""

year = int(input("Enter a year:  "))

# version 2
# this version is based on an example in 
#   The C Programming Language, 2nd Ed., by Kernighan and Ritchie.
if ( year%4 == 0 and year%100 != 0 ) or ( year%400 == 0 ) :
    print("version 2: ", year, "is a leap year")
else:
    print("version 2: ", year, "is NOT a leap year")


