Add Python notes

This commit is contained in:
2022-05-06 00:49:26 +03:00
parent 4c0cdb2f71
commit 1863176b39
57 changed files with 1205 additions and 5 deletions

21
python/функции/NOK.py Executable file
View File

@@ -0,0 +1,21 @@
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()