/*--------------------------------------------------------------------*/ /* intmath.h (Version 4) */ /* Author: Bob Dondero */ /*--------------------------------------------------------------------*/ #ifndef INTMATH_INCLUDED #define INTMATH_INCLUDED int IntMath_gcd(int iFirst, int iSecond); /* Return the greatest common divisor of iFirst and iSecond. It is a checked runtime error for iFirst or iSecond to be negative or zero. */ int IntMath_lcm(int iFirst, int iSecond); /* Return the least common multiple of iFirst and iSecond. It is a checked runtime error for iFirst or iSecond to be negative or zero. */ #endif