<filename>Euclidian GDC calculator.py
#!/usr/bin/env python
# coding: utf-8

# In[62]:
import math

x = 84
y = 49
conf = math.gcd(x,y)

while y != 0:
    print(str(x) + " = " + str(y) + " * " + str(x//y) + " + " + str(x%y))
    r = x%y
    x = y
    y = r

print("GCD --> " + str(x))
print("Confirmation --> " + str(conf))

print(((21-7)/5)%26)

<filename>Euclidian GDC calculator.py
#!/usr/bin/env python
# coding: utf-8

# In[62]:
import math

x = 84
y = 49
conf = math.gcd(x,y)

while y != 0:
    print(str(x) + " = " + str(y) + " * " + str(x//y) + " + " + str(x%y))
    r = x%y
    x = y
    y = r

print("GCD --> " + str(x))
print("Confirmation --> " + str(conf))

print(((21-7)/5)%26)

#!/usr/bin/env python # coding: utf-8 # In[62]: