GCD Challebge.py

Free lines Python 1 revisions 457 a year ago a year ago
# This is for the https://t.me/prograchallenges/182 challenge on Challenge solvers group

import math

x = int(input("Please enter the first number: "))
y = int(input("Now enter the second number: "))

def get_gcd():
    return math.gcd(x, y)

print("GCD of {} and {} is".format(x, y), get_gcd())