bIsCentury = (nYear div 100) == 0
bSameAge = nAge1 == nAge2
Note that to improve legibility and avoid possible confusion between the = and the ==, it is customary to enclose a test for equality in parentheses
bIsCentury = ((nYear div 100) == 0)
bSameAge = (nAge1 == nAge2)
although the first examples are also perfectly valid.