Q 1. Problem 5 (evenly divisible) I tried the brute force method but it took time, so I referred few sites and found this code:
#include int gcd(i
Using a bit of recursion and Objective-C
-(int)euclid:(int)numA numB:(int)numB { if (numB == 0) return numA; else return ([self euclid:numB numB:numA % numB]); }