Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 227 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 227 Bytes

gcd-or-hcf

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)