/* find_gcd.c */ /* function prototype */ int find_gcd(int n1, int n2); /* Subprogram: Reduces a fraction */ void reduce_fraction(int *nump, int *denomp) { int gcd; gcd = find_gcd(*nump, *denomp); *nump = *nump / gcd; *denomp = *denomp / gcd; }