q and r are two - digit positive integers that have the same digits but in reverse order . if the positive difference between q and r is less than 30 , what is the greatest possible value of q minus r ?
n0 = 30.0
t0 = 10.0 - 1.0
t1 = n0 % t0
answer = t1 * t0
print(answer)