summaryrefslogtreecommitdiff
path: root/comp/work/28/2.py
blob: 5e344e4229394e97600b10053a4f7ed35d1febbf (plain)
1
2
3
4
5
6
7
8
9
10
def gcf(num1, num2):
    while num1 != num2:
        if (num1 > num2):
            num1 = num1 - num2
        else:
            num2 = num2 - num1
    return num1


print(gcf(10, 20))