9
Dan Boxall
Last seen 3 years ago
Member for 9 years, 6 months, 1 day
Difficulty Normal
As the title suggests, I have copied this from the forum. This is because I cannot for the life of me work it out. I can do it if I know there are only 2 variables:
for i in reversed(range(min(a,b))):
if a%i == 0 and b%i == 0:
gcd = i
However, when I don't know how many variables there
More