Saturday, August 5, 2017

A Two-Digit Number

Find a two-digit number that's equal to two times the result of multiplying its digits. Click below to see the answer.


Mark Henderson said...

next(x for x in range(10,100) if int(str(x)[0])*int(str(x)[1])*2 == x)

Bill the Lizard said...

Nice! I'll have to come up with one that has a bigger problem space so it will be harder to solve with one line if code. :)