Files
learning/Programming Notes/python/функции/NOK.py
T
oleg20111511 f235a35ebb Reorganize
2026-03-02 19:15:17 +02:00

21 lines
225 B
Python
Executable File

def nok (a,b):
c=a
d=b
ia=1
ib=1
while c != d:
if c < d:
ia += 1
c = a*ia
else:
ib+=1
d = b*ib
print(c, d)
return c
z = int(input('a: '))
x = int(input('b: '))
nok(z, x)
input()