How could i evaluate this to a code.?
Posted
by WM
on Stack Overflow
See other posts from Stack Overflow
or by WM
Published on 2010-05-02T13:13:26Z
Indexed on
2010/05/02
13:17 UTC
Read the original article
Hit count: 188
homework
There is a medieval puzzle about an old woman and a basket of eggs. On her way to market, a horseman knocks down the old woman and all the eggs are broken. The horseman will pay for the eggs, but the woman does not remember the exact number she had, only that when she took the eggs in pair, there was one left over; similarly, there was one left over when she took them three or five at a time. When she took them seven at a time, however, none were left. Write an application that can determine the smallest number of eggs the woman could have had.
© Stack Overflow or respective owner