"""
date:     January 25, 2012
category: loops
purpose:  count integers in range of 20 to 1000 that
          are evenly divisible by 13 or 22


"""

i = 20

while i <= 1000 :
    if i%13 == 0 and i%22 == 0 :
        print("divisible by both 13 and 22: ", i)
    elif i%13 == 0 :
        print("divisible by 13: ", i)
    elif i%22 == 0 :
        print("divisible by 22: ", i)

    i += 1


    
