0

Can anyone tell me what to do after this part of the code, I am confused?

I was trying to make a code to find the HCF of two numbers with literal lengthy code without any math module but now I am stuck in this part can anybody help with an explanation https://code.sololearn.com/c0R172EaOzLl/?ref=app

6th Jun 2022, 4:23 PM
Kaushik
Kaushik - avatar
3 Answers
+ 3
in1 = int(input()) in2 = int(input()) if in1 < in2: gcd = in2 else: gcd = in1 while True: if in1 % gcd == 0 and in2 % gcd == 0: break else: gcd -= 1 print(gcd)
6th Jun 2022, 5:20 PM
JaScript
JaScript - avatar
0
print(result) ?
6th Jun 2022, 5:08 PM
Jules
Jules - avatar