Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
One possible program:
first = int(input("First number: "))
second = int(input("Second number: "))
while second != 0:
first, second = second, first % second
print("GCD is", first)