Skip to content
Snippets Groups Projects
Select Git revision
  • 4a8bcdf91cf89d61ee6f8683410c83243aadc54b
  • jk default protected
2 results

display.c

Blame
  • euklides-trikovy.py 176 B
    #!/usr/bin/env python3
    # Největší společný dělitel: Euklidův algoritmus s pár triky navíc
    
    x = int(input())
    y = int(input())
    
    while y > 0:
        x, y = y, x%y
    
    print(x)