/************************************************************************/
/*                                                                      */
/*         Code generated by FED-CASE V1.2  Code Generator              */
/*                  © Joosen Software Development                       */
/*                  All rights reserved 1993-1995                       */
/*                                                                      */
/************************************************************************/


/************************************************************************/
/*                                                                      */
/*                          Start of Includes                           */
/*                                                                      */
/************************************************************************/

#include <stdio.h>

/************************************************************************/
/*                                                                      */
/*                           End of Includes                            */
/*                                                                      */
/************************************************************************/

/************************************************************************/
/*                                                                      */
/*                    Start of source prototype file                    */
/*                                                                      */
/************************************************************************/

#include <proto/proto_hanoi.h>

/************************************************************************/
/*                                                                      */
/*                     End of source prototype file                     */
/*                                                                      */
/************************************************************************/


/************************************************************************/
/* Procedure  : void V_Hanoi(FLI_num,FLI_from,FLI_to,FLI_help)          */
/* Function   :                                                         */
/* Designer   : Ron Heijmans                                            */
/* Date       : Fri Mar 10 21:10:41 1995                                */
/*                                                                      */
/* Modificat  :                                                         */
/* Handler    :                                                         */
/* Modific.   :                                                         */
/*                                                                      */
/************************************************************************/

void V_Hanoi(long int FLI_num, long int FLI_from, long int FLI_to, 
             long int FLI_help)
{

    if ( FLI_num == 1 )
    {
        printf( "move %d from %d to %n", 1, FLI_from, &FLI_to ) ;  /* printf:  */
    }
    else                                                   /* if(FLI_num == 1) */
    {
        V_Hanoi( FLI_num - (long int)1, FLI_from, FLI_help, FLI_to ) ;
        printf( "move %d from %d to %d\n", FLI_num, FLI_from, FLI_to ) ;  /* printf:  */
        V_Hanoi( FLI_num - (long int)1, FLI_help, FLI_from, FLI_to ) ;
    }                                                      /* end of else 'if(FLI_num == 1)' */
}                                                          /* end of V_Hanoi */

/************************************************************************/
/* Procedure  : void main()                                             */
/* Function   :                                                         */
/* Designer   : Ron Heijmans                                            */
/* Date       : Fri Mar 10 21:10:42 1995                                */
/*                                                                      */
/* Modificat  :                                                         */
/* Handler    :                                                         */
/* Modific.   :                                                         */
/*                                                                      */
/************************************************************************/

void main()
{
int LI_slice;

    LI_slice = 0 ;
    printf( "How many slices ? " ) ;                       /* printf:  */
    scanf( "%d", &LI_slice ) ;
    V_Hanoi((long int) LI_slice, (long int)1, (long int)3, (long int)2 ) ;
}                                                          /* end of V_main */
