. Write a program to take two numbers from user and find the hcf using function HCF( ).using main function
Answers
Answered by
0
Answer:
sorryyyyyyyyyyyyyyyyyyyyyyyyyyyyy I know
Answered by
1
Answer:
its a python program
Explanation:
# program to find the hcf of two numbers
def hcf(num1,num2):
while num1!=num2:
if num1>num2:
num1=num1-num2
else:
num2=num2-num1
return num1,"is the hcf"
#main
a=int(input("enter the first number"))
b=int(input("enter the second number"))
print(hcf(a,b))
#hope it helps you
please mark brainliest
Similar questions