#4g: Codding in Python{HCF FINDER}
#hcf_finder
a=int(input("Enter 1st number: "))
b=int(input("Enter 2nd number: "))
z=max(a,b)
lst=[]
for i in range(z,0,-1):
if a%i==0 and b%i==0:
lst.append(i)
m=max(lst)
print("HCF is ",m)
Download CODES here.
CLICK HERE for online Python.
Comments