x=int(input("enter first number")) y=in(input("enter second number")) if x>y: smaller=y else smaller=x for i in range(1,smaller+1) if((x%i==0) and (y%i==0)): gcd=i print("gcd is",i)
-
Notifications
You must be signed in to change notification settings - Fork 0
finding HCF of a given number.
Ronakkumar-dev/gcd-or-hcf
About
finding HCF of a given number.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published