Greatest common denominator

This is a code sample to calculate the greatest common denominator of two integers.