using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Hannuota
{
class Program
{
static void Main(string[] args)
{
hanoi(4,"A","B","C");
Console.ReadLine();
}
static void hanoi(int count, string from, string by, string to)
{
if (count==1)
{
move(1,from,to,n);
return;
}
hanoi(count -1,from,to,by);
move(count,from,to,n);
hanoi(count-1,by,from,to);
}
static void move(int num, string from, string to)
{
Console.WriteLine("第{0} 个环从 {1} 移动到 {2}",num,from,to);
}
}
}