// Date: 08-04-14 Khu

package Pairs;
// Only to be used for extensions of PairWithGcd.

public class PairWithGcdI extends PairWithGcd
{ 
	public int gcd ()
        {
		int r;
		p = Math.abs(p);
		q = Math.abs(q);
		while (q > 0)
		{
			r = p % q;
			p = q;
			q = r;
		}
		return p;
	}

	public PairWithGcdI (int newP, int newQ)
        {
		set(newP, newQ);
	}
}

