Код:
n = 14
m = 49
if n < m:
a = n
else:
a = m
for i in range(1, a+1):
if (n%i==0) and (m%1==0):
print(i)
1
2
7
14
Код:
n = 14
m = 49
if n < m:
a = n
else:
a = m
for i in range(1, a+1):
if (n%i==0) and (m%1==0):
print(i)
1
2
7
14