All pastes #161618 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-09-05 17:08 UTC
rendered paste body
static void hanoi(int   height, char  fromPole, char  toPole,      
			char  withPole)
     {
         if (height >= 1)
         {
            hanoi(height-1, fromPole, withPole, toPole); 
            moveDisk(fromPole, toPole);
            hanoi(height-1, withPole, toPole, fromPole);
         }
     }