python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
d1=int(input("Enter a number:")) d2=int(input("Enter another number:")) rem=d1%d2 while rem!=0: d1=d2 d2=rem rem=d1%d2 print("gcd of given numbers is:",d2)
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up