My middle-school granddaughter posed the following challenge to me:
Within 10 minutes, Use the digits 3 to 7 in any order
to form a three-digit multiplicand and a two-digit multiplier
such that their product is minimal.
Out of curiosity as to whether my guess was right,
and with a view toward eliciting an interest in her
for Ruby programming, I wrote the program posted at
The program reveals that I was wrong, but it took me about 40 lines of
ignoring comments. That would probably overwhelm her. I was hoping
the code could be condensed with Ruby-isms. BTW, I left some put’s in
intended to give her a sense of the programs functionality.
Thanks in Advance,