x=int(input("Enter 1st")) y=int(input("Enter 2nd")) a=0 if x>y and x<0: a=-x if x>y and x>0: a=x if y>x and y<0: a=-y if y>x and y>0: a=y if x==y: a=x gcd=-999999999 while gcd!=a: if y/a==int and x/a==int: print(a) gcd=a else: a=a-1 print("wow") print("why doesnt this work")Soooo, this is my code, its attempting to find a greatest common denominator from two input values, and Ive pinpointed the error to be the if statement saying
if y/a==int and x/a==int.
Can anyone explain why this does not work?