3 /*Computes the gcd of two integers, _a and _b.
4 _a: The first integer of which to compute the gcd.
5 _b: The second integer of which to compute the gcd.
6 Return: The non-negative gcd of _a and _b.
7 If _a and _b are both 0, then 0 is returned, though in reality the
8 gcd is undefined, as any integer, no matter how large, will divide 0
10 int gcd(int _a,int _b){
11 /*Make both arguments non-negative.
12 This forces the return value to be non-negative.*/
15 /*Simply use the Euclidean algorithm.*/