11 lines
215 B
Python
11 lines
215 B
Python
|
#TODO: DOKOŃCZYĆ
|
||
|
|
||
|
def nwd(a, b):
|
||
|
if b == 0:
|
||
|
return a, 1, 0
|
||
|
dzielnik,x,y = nwd(b,a%b)
|
||
|
returned_y = x - (x//y)*y
|
||
|
returned_x = y
|
||
|
return dzielnik,returned_x,returned_y
|
||
|
|
||
|
print(nwd(13.0,5.0))
|