i don't understand why this works:
so if i have the fracking 10/4 and i call gcd(10,4) it would return 2? how the hell does it work? i really don't understand this....recursion-wah?Code:int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); }