Towers of Hanoi: Difference between revisions
Content deleted Content added
m →Python recursive: Tidying |
|||
Line 1,148:
move(stdout, 4, def left {}, def right {}, def middle {})</lang>
=={{header|Easyprog.online}}==
<lang easyprog.online>func hanoi n src dst aux . .
if n >= 1
call hanoi n - 1 src aux dst
print "Move " & src & " to " & dst
call hanoi n - 1 aux dst src
.
.
call hanoi 5 1 2 3</lang>
=={{header|Eiffel}}==
|