RosettaCodeData/Task/24-game-Solve/Euler-Math-Toolbox/24-game-solve-2.euler
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

20 lines
250 B
Text

>try24([1,2,3,4]);
Solved the problem
6*4=24
3+3=6
1+2=3
>try24([8,7,7,1]);
Solved the problem
22+2=24
14+8=22
7+7=14
>try24([8,4,7,1]);
Solved the problem
6*4=24
7-1=6
8-4=4
>try24([3,4,5,6]);
Solved the problem
4*6=24
-1+5=4
3-4=-1